ASP.NET CellSpacing Property

Definition and Usage

The CellSpacing property is used to set or return the pixel number between table cells in the CheckBoxList.

Note:This function is only valid when RepeatLayout is set to "Table" (default).

Syntax

<asp:CheckBoxList CellSpacing="pixels" runat="server">
some content
</asp:CheckBoxList>
Property Description
pixels Specifies the pixel number between table cells.

Example

The following example sets the CellSpacing property of the CheckBoxList control:

<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellSpacing="15">
Some content
</asp:CheckBoxList>
</form>

Example

Set the CellSpacing of CheckBoxList Control