best way to represent checkbox and bind to database

  • Thread starter forum.microsoft.com
  • Start date
F

forum.microsoft.com

I am trying to bind windows form checkbox in Sql and bind the checkbox to
sql.

I tried representing checkstate as integer 1 for true otherwise integer 0.
That does not work. I tried binding to checkstate

Do I have to have custom code?
 
F

forum.microsoft.com

casting the column in dataset designer to Boolean and bind to the checked
instead of checkstate work great.
 
G

GS

thank you - that is wonderful for more complex data like date. I will keep
that in mind
 

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