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:
virtual TemplateField^ CreateTemplateField(
	DataControlField^ dataControlField,
	DataBoundControl^ dataBoundControl
) abstract

Parameters

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

The data field.

dataBoundControl
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
Show: