Combobox Disabled in a .Net Datagridview
Posted on 2010-03-25
I am using a .Net data gridview in a forms application. The datagridview is bound to an object with several bindable properties. I am using standard .Net binding.
Here is the problem.
I want to add a combobox column to the gridview that is not databound but displays a list of values. At runtime, the combobox is disabled.
I removed all my code and did a simple test. Added a simple unbound column to the gridview. In the 'items' property of this column, I added three values (1,2 and 3 in separate lines). I also set the ReadOnly property of that column to False. The combobox was still disabled at runtime.
How do I enable the combo box?