boolean databinding

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
 
A

Armin Zingler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top