System.Web.UI.WebControls.DataControlField.ToString Method

Returns a string that represents this System.Web.UI.WebControls.DataControlField object.

Syntax

public override string ToString ()

Returns

A string that represents this System.Web.UI.WebControls.DataControlField.

Remarks

This method is implemented to return the value of the DataControlField.HeaderText property, if the property is set. Otherwise, this method simply returns a string that represents the type of the data control field (for example, "BoundField").

Requirements

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