PC Review


Reply
Thread Tools Rate Thread

DataGrid Checkboxes Behaviour

 
 
=?Utf-8?B?TmFnYWJodXNoYW4gQW1tdQ==?=
Guest
Posts: n/a
 
      28th Jul 2004
Has anyone tried this.

Take any table in a database (ex. Customers Table in the Northwind
database). and add a new column to it called test. let the data type of test
be "bit".

do a select * query on this new table and display the results in a DataGrid
Control.

You will see check boxes in the columns of this field. try clicking on these
check boxes to check and uncheck a box. you will notice that it takes 2
clicks to uncheck the box. on first click the cell turns gray
and on the second click the box is actually gets unchecked. this behaviour
is annoying as the box should change state in just one click.

It will be very kind if someone tries to simulate what I have done and let
me know if the same problem is occurring. Is this a bug... Can there be some
workaround for this ?

I'll be very gratefull for any help/comments
 
Reply With Quote
 
 
 
 
Oleg Zherebin
Guest
Posts: n/a
 
      28th Jul 2004
For one-click checkboxes you need to override OnMouseDown() routine of your
grid

"Nagabhushan Ammu" <(E-Mail Removed)> wrote in
message newsC60ECC7-DA22-4883-AD98-(E-Mail Removed)...
> Has anyone tried this.
>
> Take any table in a database (ex. Customers Table in the Northwind
> database). and add a new column to it called test. let the data type of

test
> be "bit".
>
> do a select * query on this new table and display the results in a

DataGrid
> Control.
>
> You will see check boxes in the columns of this field. try clicking on

these
> check boxes to check and uncheck a box. you will notice that it takes 2
> clicks to uncheck the box. on first click the cell turns gray
> and on the second click the box is actually gets unchecked. this behaviour
> is annoying as the box should change state in just one click.
>
> It will be very kind if someone tries to simulate what I have done and let
> me know if the same problem is occurring. Is this a bug... Can there be

some
> workaround for this ?
>
> I'll be very gratefull for any help/comments



 
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
DataGrid with checkboxes GatorBait Microsoft VB .NET 3 22nd Sep 2005 09:45 PM
Help with a datagrid? Set of Checkboxes? TIA Fred Microsoft Access Forms 4 20th Apr 2005 09:11 AM
Checkboxes in a datagrid (VB.Net) Stu Microsoft ASP .NET 0 11th Mar 2004 09:39 AM
Re: CheckBoxes in Datagrid Jos Microsoft ASP .NET 0 19th Aug 2003 01:04 PM
A row of checkboxes in datagrid? Wongalogic Microsoft Dot NET Framework Forms 2 10th Jul 2003 07:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 AM.