C# DataGridBoolColumn question

J

Jason Huang

Hi,

In VS2003, C# Windows form project, on my DataGrid1.
The first column's style in my DataGrid1 is DataGridBoolColumn.
When I first click that checkbox, the checkbox doesn't turn to checked, it
just has the whole cell turns to blue, I have to Double Click it to make it
checked.
And while I want to uncheck the checkbox, I have to do the Double Click
again.
Would someone tell me how make the checkbox check/unchecked just by Single
Click.
Thanks for help.


Jason
 
G

Guest

Hello,

You can override the MouseClick event (or MouseUp/MouseDown/...).
if the cell you clicked, is in a dataGridBoolColumn and if the value of this
cell is unchecked. Check it!

easy...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top