DataGridView Column Type Editors

JaedenRuiner

Well-known member
Joined
Aug 13, 2007
Messages
340
Programming Experience
10+
Creating a DataGridView on a form, you can define the different columns for the control, and you can create them as a specific type, a ComboBoxColumn, CheckBoxColumn, etc.

With the ComboBox Column it appears to be a static list, much like the ComboBox control when you set it to csDropDownList (not sure if that's the "actual" property value, but you get the idea). Basically if an Item is not in the list the cell cannot be set to any other value. Is there a way to change this?

Basically I want it to be a combo box for specific reasons, but otherwise an edit box. When a value is entered into the edit box I will do some special validation on my own, but I want the ability to utilize the combobox as well as the edit box. Is there a way to do this with the DataGridView ComboBox Column type?

Thanks
 
Back
Top