ASP.NET RepeatColumns 屬性
定義和用法
RepeatColumns 屬性用于設(shè)置或返回當(dāng)顯示復(fù)選框列時(shí)所使用的列數(shù)。
語(yǔ)法
<asp:CheckBoxList RepeatColumns="num" runat="server"> some content </asp:CheckBoxList >
屬性 | 描述 |
---|---|
num | 規(guī)定要顯示的列數(shù)。默認(rèn)是 "0"(未設(shè)置)。 |
實(shí)例
下面的例子把 CheckBoxList 控件中的 RepeatColumns 屬性設(shè)置為 "2":
<form runat="server">
<asp:CheckBoxList id="rb1" runat="server" RepeatColumns="2"
>
Some content
</asp:CheckBoxList>
</form>
實(shí)例
- 設(shè)置 CheckBoxList 控件的 RepeatColumns 屬性