PC Review


Reply
Thread Tools Rate Thread

C# DataGridBoolColumn question

 
 
Jason Huang
Guest
Posts: n/a
 
      20th Dec 2006
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?RHJfRnJhbno=?=
Guest
Posts: n/a
 
      21st Dec 2006
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...




 
Reply With Quote
 
=?Utf-8?B?RHJfRnJhbno=?=
Guest
Posts: n/a
 
      21st Dec 2006
Here is an example of a custom DataGrid and a cutsom DataGridBoolColumn in VB

http://msdn2.microsoft.com/en-gb/library/ms996485.aspx
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGridBoolColumn Ryan Liu Microsoft C# .NET 1 11th Oct 2006 04:05 AM
DataGridBoolColumn question Björn Microsoft Dot NET Framework Forms 0 25th Jul 2006 02:03 PM
datagridboolcolumn Alice April via .NET 247 Microsoft C# .NET 0 16th Apr 2004 09:00 PM
DataGridBoolColumn? James Goodman Microsoft VB .NET 2 21st Jan 2004 02:59 PM
DatagridBoolColumn in .NET CF !? Microsoft Dot NET Compact Framework 3 14th Nov 2003 11:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:30 AM.