Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a radiobuttonlist composed of several listitems and i want to put each radiobutton (listitem) on a row in a way that the user have to choose only one of them.

I tried to go as such:

<pre lang="c#">
//loop
TableCell cell=new TableCell();
ListItem li=new ListItem();
radiobuttonlist.Items.Add(li);
cell.Controls.Add(li);//problem is here, it works for combobox but not for listitem

is there any way to do so?

Cheers!
Posted
Updated 18-Mar-12 11:44am
v2
Comments
Member 13713279 12-Apr-18 4:27am    
i need that also :'(

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