Solved

Checkboxes in a datagridview not holding value

Posted on 2012-03-14
3
256 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now