System.Web.UI.WebControls.ButtonColumn.FormatDataTextValue Method

Converts the specified value to the format that is indicated by the ButtonColumn.DataTextFormatString property.

Syntax

protected virtual string FormatDataTextValue (object dataTextValue)

Parameters

dataTextValue
The value to format.

Returns

The dataTextValue converted to the format indicated by the ButtonColumn.DataTextFormatString.

Remarks

Use the ButtonColumn.FormatDataTextValue(object) method to convert the specified value to the format that is indicated by the ButtonColumn.DataTextFormatString property.

Note:

The ButtonColumn.FormatDataTextValue(object) method returns the string equivalent of the value, if the ButtonColumn.DataTextFormatString property is not set.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0