473,473 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 1890
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Richard | last post by:
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint...
2
by: Raj | last post by:
Hi, When we are sorting the DataGrid Boolean column the grid is becoming redcross. I have my own PPMIPDataGridBoolColumn class inherited from System.Windows.Forms.DataGridBoolColumn. In this...
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
6
by: Agnes | last post by:
I understand it is impossible, but still curious to know "Can I freeze several column in the datagrid, the user can only scroll the first 3 columns (not verical), for the rest of the coulumn, it is...
13
by: pmcguire | last post by:
I have a DataGrid control for which I have also created several new extended DataGridColumnStyles. They behave pretty nicely, but I can't figure out how to implement Selected Item formatting for...
4
by: Anthony | last post by:
Hi Folks, I'm adding some columns to my datagrid which are of Combo Box type. I'm inheriting DataGridTextBoxColumn and doing all the usual stuff to get them populated. This is working fine. I...
4
by: skOOb33 | last post by:
I successfully autosized the columns and rows on my Datagrid, and am now facing another issue. Having the sorting ability by clicking the column headers is key, but when I do that, it resizes all...
0
by: Familjen Karlsson | last post by:
Hi I have downloaded some code and tried it and nothing happens with the datagrid. Explain what is wrong and what I have to do please. I have tried to Import the namespace Hamster and it didn't...
2
by: Mike Baugh | last post by:
I am using visual studio 2005 to develop a form using c# I have 3 datagrids on one form. I can set the row color based on a certain value in a column. However this color applies to all 3...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.