ASP.NET CheckBoxList CellSpacingProperty
CheckBoxList Control
Definition and Usage
The CellSpacing property is used to get or set the number of pixels between table cells in a 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>
Some Content
</asp:CheckBoxList>
| Property | Description |
|---|---|
| pixels | Specifies the number of pixels 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>
<asp:CheckBoxList id="rb1"
runat="server" CellSpacing="15">
Some content
</asp:CheckBoxList>
</form>
Try it Yourself »
CheckBoxList Control Other Extensions