-
radiobutton binding
Hi!
Does anyone knows how to bind radiobutton to a field?
I have a field that only have two possible value like 1 and 2. I want to bind this field to my radiobutton. for example if the field has a value of 1, radiobutton1 should have a check and if the value is 2, the radiobutton2 will be checked. How is this done in VB.net
Thanks for the help guys!!!
-
Hmmm....
Hi..
As i know, .Net controls does not support array like vb6. So you have to do it programmatically.
-
This is faily simple as well
IIf(Rec.Fields(0).Value = 1, RadioButton1.Checked = True, RadioButton2.Checked = True)