I know that in a normal ComboBox, if the FlatStyle is Standard, the user will be able to type a value that is not in the Items list. But if a combo box in a DataGridView is Standard, it won’t let me type a new value. Is it possible to achieve this functionality in a column in a DataGridView?
I know that in a normal ComboBox , if the FlatStyle is Standard ,
Share
Well, in a DataGridView, you can add a column of
DataGridViewComboBoxColumntype. It’sDisplayStyleand/orFlatStyleare dependent on the current row state. I think when you add a new row (edit mode), you are able to add values to it.References:
Add items to DataGridViewComboBoxColumn in DataGridView during runtime
http://www.lazycoder.com/weblog/2006/09/12/adding-values-to-the-datagridviewcomboboxcell-at-runtime/