Click to See Complete Forum and Search --> : check boxes and sql server


dave2k
July 27th, 2006, 04:56 AM
i have a database table and each row has a int field called set. If it's value is 1 it is set, and 0 it isn't. what i want to do is databind this to a html table, with a cell with a checkbox in for each database row, and if a user checks a box, the corresponding row field gets set to 0.

how can i do this?

superuser
July 28th, 2006, 06:52 PM
You really should be using the bit datatype and not integer for bits. If the datatype is of bit then a gridview sees bits as checkboxes:)

HTH