ASP.NET CheckBoxList CellSpacing property
Definition and Usage
CellSpacing property is used to get or set the number of pixels in the CheckBoxList between table cells.
Note: This function is only effective when set in RepeatLayout "Table" (default).
grammar
<asp:CheckBoxList CellSpacing="pixels" runat="server">
Some Content
</asp:CheckBoxList>
Some Content
</asp:CheckBoxList>
属性 | 描述 |
---|---|
pixels | 规定表格单元格之间的像素数。 |
Examples
The following examples set CellSpacing property CheckBoxList control:
<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellSpacing="15">
Some content
</asp:CheckBoxList>
</form>
<asp:CheckBoxList id="rb1"
runat="server" CellSpacing="15">
Some content
</asp:CheckBoxList>
</form>
The demonstration >>
The CheckBoxList