Hi All,
I have a DataGridView with a column showing a combo box containing non
binded values (i.e. I set the values in the Combo myself using
ComboBoxColumn. Items.Add).
I also want this Combo Box to allow the user to enter any value as
well as the one from the drop down list.
I've managed to set the style of the Combo Box to
ComboBoxStyle.D ropDown and I can type any value in the combo, but when
I get out of the control I get a DataError exception. It looks like
DGV tries to match the string I entered with one of the value in the
drop down list.
I've tried using the CellFormatting and CellParsing events but without
success. Can anybody suggest a way to do this?
Thanks
JB
I have a DataGridView with a column showing a combo box containing non
binded values (i.e. I set the values in the Combo myself using
ComboBoxColumn. Items.Add).
I also want this Combo Box to allow the user to enter any value as
well as the one from the drop down list.
I've managed to set the style of the Combo Box to
ComboBoxStyle.D ropDown and I can type any value in the combo, but when
I get out of the control I get a DataError exception. It looks like
DGV tries to match the string I entered with one of the value in the
drop down list.
I've tried using the CellFormatting and CellParsing events but without
success. Can anybody suggest a way to do this?
Thanks
JB