Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi All,

I have some problem in my application.
I am trying to capture data into my form, which is having 20 or more controls.
In that form, I am able to capture values in every controls other than radio button control from data table ( it is used for the purpose like "Is_Domicile" & option is: Yes or No).
So, can anybody help me to capture that value in radio control.

Thank you,
Raj
Posted
v2
Comments
Have you tried anything ?
Please provide codes by clicking on "Improve question" link so that we can see what the problem.

1 solution

Hi,

As you have not provided any code, we can't help you out. You can try the following code and see what happens...

C#
RadioButton1.Checked = Convert.ToBoolean(datatable1.Rows[i]["ColumnName"]);


Regards
Sebastian
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900