ASP.NET RepeatColumns Property

Definition and Usage

The RepeatColumns property is used to get or set the number of columns used when displaying the radio button list.

Syntax

<asp:RadioButtonList RepeatColumns="num" runat="server">
some content
</asp:RadioButtonList >
Property Description
num Specify the number of columns to be displayed. The default is "1".

Example

The following example sets the RepeatColumns property of the RadioButtonList control to "2":

<form runat="server">
<asp:RadioButtonList id="rb1"
runat="server" RepeatColumns="2">
Some content
</asp:RadioButtonList>
</form>

Example

Set the RepeatColumns Property of the RadioButtonList Control