editing bit columns

D

Dean

I'm trying to edit a table with a text columnand a bit column. The text
column works fine and the bit column displays the checkbox template column
ok but I can't seem to figure out how to get the selected value into my row
field the Updatecommand event. I'm trying to do the following:

private sub myGrid_UpdateCommand(byval........
..
..
myrow.textfield = CType(e.item.cells(0).controls(0), TextBox).text <--
works fine
myrow.bitfield = CType(e.item.cells(1).controls(0), boolean) < --value of
UI can't be converted to boolean


How can I get the value of the check box into the bit field?
Thanks,
Dean
 

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,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top