How to tell RadioButtonList to NOT generate a tabl

2019-02-16 04:29发布

问题:

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.

回答1:

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.