>Here is the code that does the trick for me.
Your code has overloads and properties that are not available to me, but
after adjusting it to compile, IT WORKS! I tried code very similar to yours
in my experiments, but I don't think I actually extracted the cell value,
flipped it and set it agai
Greg,
Here is the code that does the trick for me.
private void MyDataGrid_MouseUp(object sender,
System.Windows.Forms.MouseEventArgs e)
{
DataGrid senderGrid = sender as DataGrid;
DataGrid.HitTestInfo hti = senderGrid.HitTest(e.X, e.Y);
if (hti.Type == DataGrid.HitTestType.Cell
Ian et al, I have officially given up on this issue. I'm defeated and I told
the customer that it would waste money if I kept researching it.
I could replace the CheckBox column with my own bound column type that draws
itself to make some kind of mock CheckBox, but that would take hours of
work
f 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.
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
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 trie
Folks, I've been using the DataGridView control for years in anger and I
thought I'd seen it all, but I've got a problem that's been unsolvable for
over a year.
Clicking a CheckBox cell in the top row of the grid does not change the
value. In the screenshot you can see the selected cell that wi