?
Solved

Combobox Disabled in a .Net Datagridview

Posted on 2010-03-25
2
Medium Priority
?
646 Views
Last Modified: 2013-11-26
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?
0
Comment
Question by:shekhar_shashi
2 Comments
 
LVL 10

Assisted Solution

by:Mathiyazhagan
Mathiyazhagan earned 2000 total points
ID: 28640606
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
 
LVL 3

Accepted Solution

by:
shekhar_shashi earned 0 total points
ID: 28685585
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…

593 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question