System.Web.UI.WebControls.Table.CellSpacing Property

Gets or sets the amount of space between cells.

Syntax

[System.ComponentModel.DefaultValue(-1)]
public virtual int CellSpacing { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the Table.CellSpacing property to control the spacing between adjacent cells in the System.Web.UI.WebControls.Table control. This spacing is applied both vertically and horizontally. The cell spacing is uniform for the entire table. Individual cell spacing between each row or column cannot be specified.

Note:

If you set this property to a value greater than 0 and set the Table.GridLines property to a value that displays the cell borders, a gap is displayed between the borders of adjacent cells. In this situation, the Table.CellSpacing property controls the size of the gap.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0