GridView.CreateAutoGeneratedColumn(AutoGeneratedFieldProperties) 方法

定义

注意

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);
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

参数

fieldProperties
AutoGeneratedFieldProperties

一个 AutoGeneratedFieldProperties,表示要创建的自动生成的列字段的属性。

返回

AutoGeneratedField

一个 AutoGeneratedField,表示由 fieldProperties 参数指定的自动生成的列字段。

属性

注解

当属性设置为true时,该方法CreateAutoGeneratedColumn用于创建自动生成的AutoGenerateColumns列字段。 自动生成的列字段的属性通过 AutoGeneratedFieldProperties 参数中包含的 fieldProperties 对象指定。

备注

此方法主要由控件开发人员用来扩展 GridView 控件。

适用于

另请参阅