DynamicFieldDesigner.CreateTemplateField Method (DataControlField, DataBoundControl)

 

Creates a TemplateField field for the specified data field.

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

override CreateTemplateField : 
        dataControlField:DataControlField *
        dataBoundControl:DataBoundControl -> TemplateField

Parameters

dataControlField
Type: System.Web.UI.WebControls.DataControlField

The data field object.

dataBoundControl
Type: System.Web.UI.WebControls.DataBoundControl

The data-bound control that contains the data field object.

Return Value

Type: System.Web.UI.WebControls.TemplateField

The new template field.

The CreateTemplateField method is invoked by the designer when it converts a data control field into a TemplateField object.

.NET Framework
Available since 3.5
Return to top
Show: