System.Web.UI.WebControls.DetailsView.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 DetailsView.CellSpacing property to control the spacing between adjacent cells in the System.Web.UI.WebControls.DetailsView 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 DetailsView.GridLines property to a value that displays the cell borders, a gap is displayed between the borders of adjacent cells. In this situation, the DetailsView.CellSpacing property controls the size of the gap.

To adjust the spacing between the contents of a cell and the cell's border, use the DetailsView.CellPadding property.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0