System.Web.UI.WebControls.GridView.CellSpacing Property

Gets or sets the amount of space between cells.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

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

Note:

If you set this property to a value greater than 0 and then set the GridView.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: 2.0.0.0
Since: .NET 2.0