System.Web.UI.WebControls.TemplateField.CopyProperties Method

Copies the properties of the current System.Web.UI.WebControls.TemplateField-derived object to the specified System.Web.UI.WebControls.DataControlField object.

Syntax

protected override void CopyProperties (DataControlField newField)

Parameters

newField
The System.Web.UI.WebControls.DataControlField to copy the properties of the current System.Web.UI.WebControls.TemplateField to.

Remarks

The TemplateField.CopyProperties(DataControlField) method is a helper method used to copy the properties of the current System.Web.UI.WebControls.TemplateField-derived object to the System.Web.UI.WebControls.DataControlField object created by the method.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0