System.Web.UI.WebControls.DetailsView.CreateControlStyle Method

Creates a default table style object for the System.Web.UI.WebControls.DetailsView control.

Syntax

protected override Style CreateControlStyle ()

Returns

A System.Web.UI.WebControls.Style that contains the default table style for the System.Web.UI.WebControls.DetailsView control.

Remarks

The DetailsView.CreateControlStyle method is a helper method called by the System.Web.UI.WebControls.DetailsView control to create its default table style object. In addition to the default style setting of a System.Web.UI.WebControls.TableStyle object, this method also sets the properties in the following table.

TableStyle.GridLines

GridLines.Both

TableStyle.CellSpacing

0

Requirements

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