Click here to Skip to main content
12,957,071 members (62,813 online)
Rate this:
 
Please Sign up or sign in to vote.
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 18-Mar-12 11:14am
Updated 18-Mar-12 11:44am
v2

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,924
CHill60 3,550
Maciej Los 3,312
ppolymorphe 2,120
Jochen Arndt 1,973


Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 18 Mar 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100