ASP.NET CheckBoxList RepeatColumnsProperty
CheckBoxList Control
Definition and Usage
The RepeatColumns property is used to get or set the number of columns to use when displaying the checkbox columns.
Syntax
<asp:CheckBoxList RepeatColumns="num" runat="server">
Some Content
</asp:CheckBoxList >
Some Content
</asp:CheckBoxList >
| Property | Description |
|---|---|
| num | Specifies the number of columns to display. Default is "0" (not set). |
Example
The following example sets the RepeatColumns property of the CheckBoxList control to "2":
<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" RepeatColumns="2">
Some content
</asp:CheckBoxList>
</form>
<asp:CheckBoxList id="rb1"
runat="server" RepeatColumns="2">
Some content
</asp:CheckBoxList>
</form>
Try it Yourself »
CheckBoxList Control Other Extensions