DataControlFieldDesigner.CreateTemplateField Method

Definition

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

public:
 abstract System::Web::UI::WebControls::TemplateField ^ CreateTemplateField(System::Web::UI::WebControls::DataControlField ^ dataControlField, System::Web::UI::WebControls::DataBoundControl ^ dataBoundControl);
public abstract System.Web.UI.WebControls.TemplateField CreateTemplateField (System.Web.UI.WebControls.DataControlField dataControlField, System.Web.UI.WebControls.DataBoundControl dataBoundControl);
abstract member CreateTemplateField : System.Web.UI.WebControls.DataControlField * System.Web.UI.WebControls.DataBoundControl -> System.Web.UI.WebControls.TemplateField
Public MustOverride Function CreateTemplateField (dataControlField As DataControlField, dataBoundControl As DataBoundControl) As TemplateField

Parameters

dataControlField
DataControlField

The data field.

dataBoundControl
DataBoundControl

The data-bound control that contains the data field.

Returns

The new template field.

Remarks

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

Applies to