BoundColumn::FormatDataValue Method (Object^)

 

Converts the specified value to the format indicated by the DataFormatString property.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

protected:
virtual String^ FormatDataValue(
	Object^ dataValue
)

Parameters

dataValue
Type: System::Object^

The value to format.

Return Value

Type: System::String^

The specified value converted to the format indicated by the DataFormatString property.

Use the FormatDataValue method to convert the specified value to the format indicated by the DataFormatString property.

System_CAPS_noteNote

This method returns the string equivalent of the value if the DataFormatString property is not set.

.NET Framework
Available since 1.1
Return to top
Show: