Radio Button "yes/no" Binding WinForms
Posted on 2013-01-07
I am new to radio button binding. I have the following controls on my form:
gbWeldFixPic - Group Box Control
rbWeldFixPicNo - Radio Button Control - in gbWeldFixPic
rbWeldFixPicYes - Radio Button Control - in gbWeldFixPic
I have a field in sql that stored the value as a bit (field name: engord.weldfixpic)
When I open the form for an existing order.... if my bit value is 1 then I want the rbWeldFixPicYes = checked, if my bit value is 0 then I want the rbWeldFixPicNo = checked.
What is a good way to implement this? Please provide a working code example.