Hi Ian,

 

Man oh man, I searched for an hour but only found vaguely related issues
with a few hints that didn't work related to calling EndEdit() manually.

 

The event you mention I think is only used by controls hosted inside a grid
cell, which I've mercifully never needed to do. However, I'll re-read the
bits about that event and see if I can use it from the grid's parent code.

 

I'm guessing therefore that the behaviour I'm seeing is a bug in the
DataGridView control, but I've seen no specific evidence of that yet (or no
one is owning up to it).

 

Cheers,

Greg

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Ian Thomas
Sent: Wednesday, 8 September 2010 18:00
To: 'ozDotNet'
Subject: RE: DataGridView CheckBoxColumn problem

 

One suggestion I have seen (I think this is right) is that you need to
handle the EditingControlShowing event and check for
datagridvieweditingcheckbox. Then, assign it to checkbox variable at class
level, and handle the actual checkchange event.

All of which sounds very awkward and I haven't tried this for yonks, so it
may be wrong. 

I searched briefly and it seems like your problem is well-known. One hit
gave something like the above description. 

  _____  

Ian Thomas
Victoria Park, Western Australia

Reply via email to