How to tell RadioButtonList to NOT generate a table

marcgg picture marcgg · Aug 14, 2009 · Viewed 11k times · Source

When I set up a RadioButtonList it creates a table layout for it and I don't want this... how do I get rid of it?

It might be a duplicate but I've searched and haven't manage to find a question like this here.

Answer

brianng picture brianng · Aug 14, 2009

You'll have to change the RepeatLayout property and setting it to Flow will probably yield the result you are searching for.

Take a look at all the other RepeatLayout options here:

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeatlayout.aspx

Kinda silly the 4.0 framework still defaults the ugly table variant, I mostly revert to the UnorderedList variant.