Düzenle

Aracılığıyla paylaş


DefaultAutoFieldGenerator.CreateField Method

Definition

Generates a dynamic data field.

protected:
 virtual System::Web::DynamicData::DynamicField ^ CreateField(System::Web::DynamicData::MetaColumn ^ column, System::Web::DynamicData::ContainerType containerType, System::Web::UI::WebControls::DataBoundControlMode mode);
protected virtual System.Web.DynamicData.DynamicField CreateField (System.Web.DynamicData.MetaColumn column, System.Web.DynamicData.ContainerType containerType, System.Web.UI.WebControls.DataBoundControlMode mode);
abstract member CreateField : System.Web.DynamicData.MetaColumn * System.Web.DynamicData.ContainerType * System.Web.UI.WebControls.DataBoundControlMode -> System.Web.DynamicData.DynamicField
override this.CreateField : System.Web.DynamicData.MetaColumn * System.Web.DynamicData.ContainerType * System.Web.UI.WebControls.DataBoundControlMode -> System.Web.DynamicData.DynamicField
Protected Overridable Function CreateField (column As MetaColumn, containerType As ContainerType, mode As DataBoundControlMode) As DynamicField

Parameters

column
MetaColumn

The metadata for the column to create the dynamic field for.

containerType
ContainerType

The data-bound control that contains the dynamic field.

mode
DataBoundControlMode

The access mode for the dynamic field.

Returns

The dynamic field to create.

Remarks

You can override this method to customize dynamic-field options such as the access mode. The access DataBoundControlMode mode specifies the data-entry modes for a data field, such as ReadOnly, Edit, and Insert.

Applies to