DataControlFieldDesigner.GetTemplateField Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.