IFieldTemplateFactory::CreateFieldTemplate Method
Creates an instance of a field template using the MetaColumn class, the DataBoundControlMode class and UIHint property.
Assembly: System.Web.DynamicData (in System.Web.DynamicData.dll)
IFieldTemplate^ CreateFieldTemplate( MetaColumn^ column, DataBoundControlMode mode, String^ uiHint )
Parameters
- column
- Type: System.Web.DynamicData::MetaColumn
Specifies the data column to use to display the field template.
- mode
- Type: System.Web.UI.WebControls::DataBoundControlMode
Specifies the display mode of the field template.
- uiHint
- Type: System::String
Specifies the field template to use.
Return Value
Type: System.Web.DynamicData::IFieldTemplateAn instance of a [FieldTemplateFactory] object when implemented in a class.
ASP.NET Dynamic Data field templates are ASP.NET user controls that map data controls to data types in a data model. Field templates generally derive from FieldTemplateUserControl, the class that enables access to data fields, data columns, and metadata in data models. Dynamic Data projects provide default field templates, but you can modify them or create custom field templates. When imlemented, this method creates a field template based on the data column, the mode of the data column, and the UIHint property. You specify the uiHint parameter if you want to render data using a custom field template.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.