Solved

Checkboxes in a datagridview not holding value

Posted on 2012-03-14
3
272 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Crystal reports login after closing form 3 38
MYSQL responding very slow 3 51
visual studio vb.net windows onkeyup 2 30
C# LINQ 5 27
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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