Greg - I know what you mean by searching for an hour (etc). This is all I can find (in 5 minutes) that seems close to what I posted as a poorly-remembered suggestion - and it is VB. Since you're in the thick of it, it may mean more to you than it does to me ..
http://www.vbforums.com/archive/index.php/t-466900.html My search was simple, but you may like to check out the first 'page' of hits - http://tinyurl.com/23m7zec _____ Ian Thomas Victoria Park, Western Australia _____ From: [email protected] [mailto:[email protected]] On Behalf Of Greg Keogh Sent: Wednesday, 8 September 2010 5:32 PM To: 'ozDotNet' Subject: RE: DataGridView CheckBoxColumn problem 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: [email protected] [mailto:[email protected]] 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
