Redigera

Dela via


AutoFieldsGenerator.CreateAutoGeneratedFieldFromFieldProperties Method

Definition

Creates one or more autogenerated fields using the specified collection of field properties.

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

Parameters

fieldProperties
AutoGeneratedFieldProperties

The list of properties to use when creating the field.

Returns

The autogenerated field.

Remarks

This method sets the header text and sort expression of the field to the Name value of fieldProperties, sets the ReadOnly property of the field to the IsReadOnly value of fieldProperties, and sets the DataType property of the field to the Type value of fieldProperties.

This method can be overridden to create a different field.

Applies to