DataControlFieldDesigner.CreateTemplateField Method (DataControlField, DataBoundControl)


When overridden in a derived class, creates a TemplateField field for the specified data field.

Namespace:   System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

public abstract TemplateField CreateTemplateField(
	DataControlField dataControlField,
	DataBoundControl dataBoundControl


Type: System.Web.UI.WebControls.DataControlField

The data field.

Type: System.Web.UI.WebControls.DataBoundControl

The data-bound control that contains the data field.

Return Value

Type: System.Web.UI.WebControls.TemplateField

The new template field.

The CreateTemplateField method is invoked when you click on the link to convert a data field into a TemplateField in the fields editor.

.NET Framework
Available since 2.0
Return to top