CreateField Method
Collapse the table of content
Expand the table of content

DefaultAutoFieldGenerator.CreateField Method (MetaColumn, ContainerType, DataBoundControlMode)

.NET Framework 4.6 and 4.5

Generates a dynamic data field.

Namespace:   System.Web.DynamicData
Assembly:  System.Web.DynamicData (in System.Web.DynamicData.dll)

protected virtual DynamicField CreateField(
	MetaColumn column,
	ContainerType containerType,
	DataBoundControlMode mode


Type: System.Web.DynamicData.MetaColumn

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

Type: System.Web.DynamicData.ContainerType

The data-bound control that contains the dynamic field.

Type: System.Web.UI.WebControls.DataBoundControlMode

The access mode for the dynamic field.

Return Value

Type: System.Web.DynamicData.DynamicField

The dynamic field to create.

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.

.NET Framework
Available since 4.0
Return to top
© 2015 Microsoft