database text field databound to a checkbox

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-06-18T15:55:28Z Indexed on 2010/06/18 16:13 UTC
Read the original article Hit count: 271

Filed under:
|
|

I'd like the field to save as a 1 or 0 instead of 'True' or 'False' in the database and i cannot figure out how to do it without manually setting every property when the record is saved. I have to use this a lot in this project and a bit field is not an option. I would like to solve this issue by extending the CheckBox control if possible but i don't know how to change the binding fields value. Any help would be greatly appreciated!

© Stack Overflow or respective owner

Related posts about c#

Related posts about databinding