ASP.NET CheckBoxList RepeatColumns property
Definition and Usage
RepeatColumns property is used to get or set the number of columns when the checkbox column used for display.
grammar
<asp:CheckBoxList RepeatColumns="num" runat="server">
Some Content
</asp:CheckBoxList >
Some Content
</asp:CheckBoxList >
属性 | 描述 |
---|---|
num | 规定要显示的列数。默认是 "0"(未设置)。 |
Examples
The following examples of the CheckBoxList control of RepeatColumns attribute is set 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>
The demonstration >>
The CheckBoxList