In my winforms application, I have a DataGridView where one row uses the DataGridViewComboBoxColumn control so that it contains comboboxes for this column.
Is it possible to programatically replace some of the comboboxes in that column with something else? (for example a label saying “n/a”). I only want a combobox in certain rows.
You should use
DataGridViewComboBoxCellproperty instead ofDataGridViewComboBoxColumnproperty. Something like below:In the above example, I am assigning the Individual cell properties in the first column.