編輯

共用方式為


DetailsView.CreateAutoGeneratedRow(AutoGeneratedFieldProperties) Method

Definition

Creates an AutoGeneratedField object that represents an automatically generated row field using the specified field properties.

protected:
 virtual System::Web::UI::WebControls::AutoGeneratedField ^ CreateAutoGeneratedRow(System::Web::UI::WebControls::AutoGeneratedFieldProperties ^ fieldProperties);
protected virtual System.Web.UI.WebControls.AutoGeneratedField CreateAutoGeneratedRow (System.Web.UI.WebControls.AutoGeneratedFieldProperties fieldProperties);
abstract member CreateAutoGeneratedRow : System.Web.UI.WebControls.AutoGeneratedFieldProperties -> System.Web.UI.WebControls.AutoGeneratedField
override this.CreateAutoGeneratedRow : System.Web.UI.WebControls.AutoGeneratedFieldProperties -> System.Web.UI.WebControls.AutoGeneratedField
Protected Overridable Function CreateAutoGeneratedRow (fieldProperties As AutoGeneratedFieldProperties) As AutoGeneratedField

Parameters

fieldProperties
AutoGeneratedFieldProperties

An AutoGeneratedFieldProperties that contains the properties for the AutoGeneratedField.

Returns

An AutoGeneratedField that contains the field properties specified by the fieldProperties parameter.

Remarks

The CreateAutoGeneratedRow method is a helper method called by the DetailsView control to create an automatically generated row field using the specified field properties.

Notes to Inheritors

When extending the DetailsView class, you can override this method to create your own automatically generated row field.

Applies to

See also