ASP.NET RepeatColumns property
Definition and usage
The RepeatColumns property is used to set or return the number of columns used when displaying checkbox columns.
Syntax
<asp:CheckBoxList RepeatColumns="num" runat="server"> some content </asp:CheckBoxList >
Property | Description |
---|---|
num | Specify the number of columns to be displayed. The 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>
Example
- Set the RepeatColumns property of the CheckBoxList control