Check box that appears grayed

  • Thread starter Thread starter Michael Horsfall
  • Start date Start date
M

Michael Horsfall

I have a check box on a form that is linked to a DataRow
field with a value of 0 or 1. When the form is
displayed, the checkbox is grayed with a check inside.
If i evaluate the control with IsDBNull it comes back
true, is this because in .Net, the checkbox can't convert
1 and 0 to True and False?
 
* "Michael Horsfall said:
I have a check box on a form that is linked to a DataRow
field with a value of 0 or 1. When the form is
displayed, the checkbox is grayed with a check inside.
If i evaluate the control with IsDBNull it comes back
true, is this because in .Net, the checkbox can't convert
1 and 0 to True and False?

In VB.NET, 'True' is -1. I am not sure if this is related to your problem.
 
Back
Top