ASP.net checkbox help

C

Chris Kettenbach

I want to bind a checkbox in a datagrid to a field in a database. Is this
possible? This is an Access database and the field is a true/false field.
I do not think there are any nulls in this field. I will also want the
checkbox to react to checking/unchecking. Thanks for any help/examples.

Regards,
Chris
 
G

Guest

The general way to do this is something like the following in the code behind:

myCheckBox.Checked = (bool) dataSet.Table[0]["MyBool"];

Hope that helps!

Jason Lind
 

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

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top