Solved

Checkboxes in a datagridview not holding value

Posted on 2012-03-14
3
260 Views
Last Modified: 2012-03-14
I have a datagridview who's datasource I populate with a generic list.  This generic list ("buyers" - plural) is a collection of lots of custom class objects ("buyer" objects).  All of the properties belonging to a buyer object display as columns in the datagridview (when connected to the grid's datasource)...so far so good.  Consider that one of the buyer object's properties is a boolean that I just now added to the code.  When the datagridview displays all of its data, this boolean property is expressed as a column of checkboxes -- which is just what I want.  The problem is this: when I click on any of those checkboxes, no mark shows.  Note, that that particular column is not readonly, so the core cause must be something else.  Ideas?

BTW, the generic list "buyers" inherits from "system.componentmodel.bindinglist"; not sure if this has any bearing on the problem.
0
Comment
Question by:David L. Hansen
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
YZlat earned 500 total points
ID: 37720689
is your gridview updatable?
0
 
LVL 15

Author Comment

by:David L. Hansen
ID: 37720735
So simple!  My EditMode was set to EditProgrammatically.  I got rid of that and it's running super.  Thanks!
0
 
LVL 35

Expert Comment

by:YZlat
ID: 37720803
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

773 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