System.Web.UI.WebControls.BoundField.GetValue Method

Retrieves the value of the field bound to the System.Web.UI.WebControls.BoundField object.

Syntax

protected virtual object GetValue (System.Web.UI.Control controlContainer)

Parameters

controlContainer
The container for the field value.

Returns

The value of the field bound to the System.Web.UI.WebControls.BoundField.

Remarks

The BoundField.GetValue(System.Web.UI.Control) method is a helper method used to determine the value of a field. If the System.Web.UI.WebControls.BoundField object is being displayed in a designer and the field value cannot be determined at design time, the value returned from the BoundField.GetDesignTimeValue method is returned instead of the actual field value.

Note:

This method is used primarily by control developers.

Requirements

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