GridView.CreateAutoGeneratedColumn(AutoGeneratedFieldProperties) 方法

定义

警告

此 API 现已过时。

创建一个自动生成的列字段。Creates an automatically generated column field.

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
Protected Overridable Function CreateAutoGeneratedColumn (fieldProperties As AutoGeneratedFieldProperties) As AutoGeneratedField

参数

fieldProperties
AutoGeneratedFieldProperties

一个 AutoGeneratedFieldProperties,表示要创建的自动生成的列字段的属性。An AutoGeneratedFieldProperties that represents the properties of the automatically generated column field to create.

返回

一个 AutoGeneratedField,表示由 fieldProperties 参数指定的自动生成的列字段。An AutoGeneratedField that represents the automatically generated column field specified by the fieldProperties parameter.

属性

注解

当属性设置为true时,方法用于创建自动生成的列字段。CreateAutoGeneratedColumn AutoGenerateColumnsThe CreateAutoGeneratedColumn method is used to create an automatically generated column field when the AutoGenerateColumns property is set to true. 自动生成的列字段的属性通过AutoGeneratedFieldProperties fieldProperties参数中包含的对象指定。The properties of the automatically generated column field are specified through the AutoGeneratedFieldProperties object contained in the fieldProperties parameter.

备注

此方法主要由控件开发人员用来扩展GridView控件。This method is used primarily by control developers to extend the GridView control.

适用于

另请参阅