System.Web.UI.WebControls.TableStyle.CellSpacing Property

Gets or sets the distance between table cells.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the TableStyle.CellSpacing property to control the spacing between adjacent cells in a data listing control. This spacing is applied both vertically and horizontally. The cell spacing is uniform for the entire data list control. 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 TableStyle.GridLines property to a value that displays the cell borders, a gap is displayed between the borders of adjacent cells. In this situation, the TableStyle.CellSpacing property controls the size of the gap.

The value of this property is stored in view state.

Requirements

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