ערוך

שתף באמצעות


DataControlFieldDesigner.GetTemplateField Method

Definition

Gets a TemplateField object for the specified data field.

protected:
 System::Web::UI::WebControls::TemplateField ^ GetTemplateField(System::Web::UI::WebControls::DataControlField ^ dataControlField, System::Web::UI::WebControls::DataBoundControl ^ dataBoundControl);
protected System.Web.UI.WebControls.TemplateField GetTemplateField (System.Web.UI.WebControls.DataControlField dataControlField, System.Web.UI.WebControls.DataBoundControl dataBoundControl);
member this.GetTemplateField : System.Web.UI.WebControls.DataControlField * System.Web.UI.WebControls.DataBoundControl -> System.Web.UI.WebControls.TemplateField
Protected Function GetTemplateField (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 GetTemplateField method is a helper method that can be used by the CreateTemplateField method to create a new TemplateField object and initialize its properties using the specified data field properties.

Applies to