Is it possible to have a Radio button list, like we have a checked List box?
Actually I want to load all the options from database to the list but do not want user to allow to check more than one item.
Also how to read it (say item 4 of the list) I want to store its value in the variable.
Thanks and best regards.
Furqan
If you mean the ASP.Net RadioButtonList-Control try this example:
aspx(you can configure the datasource on the designer(show smart Tag):
A Radiobuttonlist allows user to select only one item by default.
The selected Item is stored in
RadioButtonList1.SelectedItem.EDIT: As you have clairified now that it’s a Winform issue, you need a GroupBox to allow user only to select one.
To create the Radiobuttons dynamically from datasource and add them to the Groupbox, have a look at my samplecode:
Remember that you must replace my data objects with yours.