DefaultAutoFieldGenerator.CreateField Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈