PDA

Click to See Complete Forum and Search --> : datagridview unbound combo?


Techno
May 3rd, 2007, 11:11 AM
in a datagridview, is there a way to add an unbound combo box? in that, you are still able to type in your inputs but also having the ability to choose items from the drop down list?

jmcilhinney
May 3rd, 2007, 07:21 PM
The DataGridViewComboBoxColumn doesn't support that. If you want that behaviour then you'd have to inherit the DataGridViewComboBoxColumn, DataGridViewComboBoxCell and (maybe) DataGridViewComboBoxEditingControl classes and provide it yourself.

Techno
May 4th, 2007, 01:45 AM
interesting....thanks :)

jmcilhinney
May 4th, 2007, 03:18 AM
Actually, you may be able to handle the EditingControlShowing event and set the DropDownStyle of the EditingControl to DropDown. That's a bit of a hack but it will do the job.