共用方式為


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 為 時 AutoGenerateColumns ,方法 CreateAutoGeneratedColumn 會用來建立自動產生的資料列欄位。 自動產生的資料列欄位屬性是透過 AutoGeneratedFieldProperties 參數中包含的 fieldProperties 物件來指定。

注意

這個方法主要是由控制項開發人員用來擴充 GridView 控制項。

適用於

另請參閱