GridView.CreateAutoGeneratedColumn(AutoGeneratedFieldProperties) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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,表示由 fieldProperties
参数指定的自动生成的列字段。
- 属性
注解
当属性设置为true
时,该方法CreateAutoGeneratedColumn用于创建自动生成的AutoGenerateColumns列字段。 自动生成的列字段的属性通过 AutoGeneratedFieldProperties 参数中包含的 fieldProperties
对象指定。
备注
此方法主要由控件开发人员用来扩展 GridView 控件。