boolean databinding

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi there

I have a little problem here, wich i think is quite
strange...
I have a dataset, filled from my SQL database.
In it are some boolean fields (or bit as SQL server calls
them)
Now, on my winform i have placed a checkbox wich i want
to correspond with the value of this boolean field.
I've tried databinding to the Checked and Checkstate
properties of the checkbox (so obviously, the checkbox
should be checked when the boolean is true and vice
versa) but it just won't work.
The databinding works fine when i bind a textfield to a
textbox.

What am i doing wrong here?

Thanx

Tom
 
Tom said:
I have a little problem here, wich i think is quite
strange...
I have a dataset, filled from my SQL database.
In it are some boolean fields (or bit as SQL server calls
them)
Now, on my winform i have placed a checkbox wich i want
to correspond with the value of this boolean field.
I've tried databinding to the Checked and Checkstate
properties of the checkbox (so obviously, the checkbox
should be checked when the boolean is true and vice
versa) but it just won't work.
The databinding works fine when i bind a textfield to a
textbox.

What am i doing wrong here?

The question is not VB.NET specific. Please turn to
microsoft.public.dotnet.framework.windowsforms.databinding
 
Back
Top