System.Web.UI.WebControls.GridView.CreateAutoGeneratedColumn Method

Creates an automatically generated column field.

Syntax

protected virtual AutoGeneratedField CreateAutoGeneratedColumn (AutoGeneratedFieldProperties fieldProperties)

Parameters

fieldProperties
An System.Web.UI.WebControls.AutoGeneratedFieldProperties that represents the properties of the automatically generated column field to create.

Returns

An System.Web.UI.WebControls.AutoGeneratedField that represents the automatically generated column field specified by the fieldProperties parameter.

Remarks

The GridView.CreateAutoGeneratedColumn(AutoGeneratedFieldProperties) method is used to create an automatically generated column field when the GridView.AutoGenerateColumns property is set to true. The properties of the automatically generated column field are specified through the System.Web.UI.WebControls.AutoGeneratedFieldProperties object contained in the fieldProperties parameter.

Note:

This method is used primarily by control developers to extend the System.Web.UI.WebControls.GridView control.

Requirements

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