Question can we have an editable combobox in datagridview ?

dineshkumaar

Member
Joined
Jun 5, 2009
Messages
21
Programming Experience
10+
Can we have an Editable DataGridViewComboBoxColumn in a datagridview or any other alternate for the same ?
 
You can embed any control you like in a grid cell. The standard DataGridViewComboBoxColumn requires that the DropDownStyle property of the embedded ComboBox be DropDownList though. You could create your own custom column type to support DropDown, but you'd need to provide additional logic for transferring values between cell and control and back again.
 
Back
Top