DataBinding with Radiobuttons
Hi ,
i am woking with c#.net window application with sql server sir. By executing the stored procedure i got the records in dataset . so i want to bind the data with my form
controls , like textbox ,checkbox, radiobuttons.
for example
txt_StudentID.DataBindings.Add("Text", ds.Tables["stu"], "stuid");
txt_FirstName.DataBindings.Add("Text", ds.Tables["stu"], "sfname");
but i want to bind the one field into the radio button.
ie, in a recordset i have one field for gender with varcchar(1) data type.
it may be 'M' or 'F' . so my requirement is if it 'M' the first radiobutton want to select else if its 'F' the second radiobutton want to select.
Thank you
|