Combobox Disabled in a .Net Datagridview

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?
LVL 3
shekhar_shashiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MathiyazhaganCommented:
Hi,
  All of your setting on column seems correct.I suspect the properties of DataGridView.To edit column a in gridview, grid view should enabled and enabled editing.
 (i)First check  "Enabled " property of datagridview. it should be true.
  (2)if it enabled, then check it is "Enabled Editing" in smart tag of designer.it also should be true.have attached screen shot this point

Hope this helps.
enableediting.JPG
0
shekhar_shashiAuthor Commented:
I tried to set enable editing = true. It accepts the value but as soon as the application runs, the enable editing checkbox is reset to unchecked. Could this be because I am binding to an object and not a datatable?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.