Rediger

Del via


GridView.CreateAutoGeneratedColumn(AutoGeneratedFieldProperties) Method

Definition

Caution

This is kept for backward compatibility - this API is no more used

Creates an automatically generated column field.

protected:
 virtual System::Web::UI::WebControls::AutoGeneratedField ^ CreateAutoGeneratedColumn(System::Web::UI::WebControls::AutoGeneratedFieldProperties ^ fieldProperties);
protected virtual System.Web.UI.WebControls.AutoGeneratedField CreateAutoGeneratedColumn (System.Web.UI.WebControls.AutoGeneratedFieldProperties fieldProperties);
[System.Obsolete("This is kept for backward compatibility - this API is no more used")]
protected virtual System.Web.UI.WebControls.AutoGeneratedField CreateAutoGeneratedColumn (System.Web.UI.WebControls.AutoGeneratedFieldProperties fieldProperties);
abstract member CreateAutoGeneratedColumn : System.Web.UI.WebControls.AutoGeneratedFieldProperties -> System.Web.UI.WebControls.AutoGeneratedField
override this.CreateAutoGeneratedColumn : System.Web.UI.WebControls.AutoGeneratedFieldProperties -> System.Web.UI.WebControls.AutoGeneratedField
[<System.Obsolete("This is kept for backward compatibility - this API is no more used")>]
abstract member CreateAutoGeneratedColumn : System.Web.UI.WebControls.AutoGeneratedFieldProperties -> System.Web.UI.WebControls.AutoGeneratedField
override this.CreateAutoGeneratedColumn : System.Web.UI.WebControls.AutoGeneratedFieldProperties -> System.Web.UI.WebControls.AutoGeneratedField
Protected Overridable Function CreateAutoGeneratedColumn (fieldProperties As AutoGeneratedFieldProperties) As AutoGeneratedField

Parameters

fieldProperties
AutoGeneratedFieldProperties

An AutoGeneratedFieldProperties that represents the properties of the automatically generated column field to create.

Returns

An AutoGeneratedField that represents the automatically generated column field specified by the fieldProperties parameter.

Attributes

Remarks

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

Note

This method is used primarily by control developers to extend the GridView control.

Applies to

See also