469,573 Members | 1,013 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,573 developers. It's quick & easy.

DataGrid Boolean Column

ZS
Hi,
I have a boolean column in my datagrid. During runtime when I check the
checkbox there are actually Three states for the checkbox. So I have to
actually double click to change from true to false. is there a way in which I
can just click once and then when I check it toggeles. Something like setting
the Threestate property for a Checkbox as false.How can I achive the same for
a Datagrid column.

myDataColumn = new DataColumn("CoumnName",typeof(bool));
thanks.
-ZS

Nov 17 '05 #1
5 1776
set the AllowDBNull property of the DataColumn to false
--
Regards,
Amal
http://geocities.com/techsharing
"ZS" wrote:
Hi,
I have a boolean column in my datagrid. During runtime when I check the
checkbox there are actually Three states for the checkbox. So I have to
actually double click to change from true to false. is there a way in which I
can just click once and then when I check it toggeles. Something like setting
the Threestate property for a Checkbox as false.How can I achive the same for
a Datagrid column.

myDataColumn = new DataColumn("CoumnName",typeof(bool));
thanks.
-ZS

Nov 17 '05 #2
ZS
Hi Amal,
Thanks but I was able to solve it in a different way.
-Zelma
"AMALORPAVANATHAN YAGULASAMY(AMAL)" wrote:
set the AllowDBNull property of the DataColumn to false
--
Regards,
Amal
http://geocities.com/techsharing
"ZS" wrote:
Hi,
I have a boolean column in my datagrid. During runtime when I check the
checkbox there are actually Three states for the checkbox. So I have to
actually double click to change from true to false. is there a way in which I
can just click once and then when I check it toggeles. Something like setting
the Threestate property for a Checkbox as false.How can I achive the same for
a Datagrid column.

myDataColumn = new DataColumn("CoumnName",typeof(bool));
thanks.
-ZS

Nov 17 '05 #3
ZS
Hi Amal,
Thanks but I was able to solve it in a different way.
-Zelma
"AMALORPAVANATHAN YAGULASAMY(AMAL)" wrote:
set the AllowDBNull property of the DataColumn to false
--
Regards,
Amal
http://geocities.com/techsharing
"ZS" wrote:
Hi,
I have a boolean column in my datagrid. During runtime when I check the
checkbox there are actually Three states for the checkbox. So I have to
actually double click to change from true to false. is there a way in which I
can just click once and then when I check it toggeles. Something like setting
the Threestate property for a Checkbox as false.How can I achive the same for
a Datagrid column.

myDataColumn = new DataColumn("CoumnName",typeof(bool));
thanks.
-ZS

Nov 17 '05 #4
Hi ZS,

but, what was your way to solve it, cause I tried setting the
allowdbnull to false and didn't work

thanks,

Jose Luis

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #5


Hi ZS,

What was you way to solve it, I set the allowdbnulls to false and still
have the same problem

Thanks

Jose Luis

*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Raj | last post: by
2 posts views Thread by CSL | last post: by
6 posts views Thread by Agnes | last post: by
13 posts views Thread by pmcguire | last post: by
4 posts views Thread by Anthony | last post: by
reply views Thread by Familjen Karlsson | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.