Latest web development tutorials

ASP.NET CheckBoxList CellSpacing property

The CheckBoxList The CheckBoxList

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>

属性 描述
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>

The demonstration >>

The CheckBoxList The CheckBoxList