ASP.NET CheckBoxList CellPaddingProperty
CheckBoxList Control
Definition and Usage
The CellPadding property is used to get or set the number of pixels between the border and the contents of the table cell.
Note:This function is only valid when the RepeatLayout property is set to "Table".
Syntax
<asp:CheckBoxList CellPadding="pixels" runat="server">
Some Content
</asp:CheckBoxList>
Some Content
</asp:CheckBoxList>
| Property | Description |
|---|---|
| pixels | Specifies the number of pixels between the border and the contents of the table cell. |
Example
The following example sets the CellPadding property of the CheckBoxList control:
<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:CheckBoxList>
</form>
<asp:CheckBoxList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:CheckBoxList>
</form>
Show Example »
CheckBoxList Control Other Extensions