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
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.