Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radiobutton List

Status
Not open for further replies.

TMRO

Technical User
Jan 10, 2003
140
0
0
CA
Hi everybody,

I'm populating a radiobutton list through C# code.

for (int i = 1; i <= 40; i++)
{
rbnlstep2.Items.Add(new ListItem(i.ToString()));
}

The issue that I have is that the radiobuttons are displayed in this format:
1 radiobutton 2 radiobutton ... 40 radiobutton

where what I would like to get is
radiobutton 1 radiobutton 2 ... radiobutton 40

in other words the radiobutton to be in front of the text value.

How can I change that?

Thank you

 
There must be more code that you are not showing, however, try using the textalign property of the radiobutton list, and set it to Left.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top