I have a DataGridView control that is bound to a DataTable, and I am using the DataTable to add rows to the DataGridView. I am not using a database in any way, but need to add data to the DataTable/DataGridView using code alone.
I need to replace certain columns with ComboBoxCells. The ComboBoxColumn setup won't work for me because each cell in the column needs combo boxes with different combo box values. I basically need to override each cell in that column as I am adding rows to the DataTable. My understanding is that I need to add rows to the DataTable, and then go in and specifically replace the cell in the DataGridView with the ComboBoxCell I created.
I have a method to create the ComboBoxCell object based on a list of strings I send it, but I can't seem to work out how to grab a specific cell, remove it, and replace it with the new ComboBoxCell. Can anybody point me in the right direction?