This documentation is archived and is not being maintained.

BoundColumn.FormatDataValue Method

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

[Visual Basic]
Protected Overridable Function FormatDataValue( _
   ByVal dataValue As Object _
) As String
[C#]
protected virtual string FormatDataValue(
 object dataValue
);
[C++]
protected: virtual String* FormatDataValue(
 Object* dataValue
);
[JScript]
protected function FormatDataValue(
   dataValue : Object
) : String;

Parameters

dataValue
The value to format.

Return Value

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

Remarks

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

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

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

BoundColumn Class | BoundColumn Members | System.Web.UI.WebControls Namespace | DataFormatString

Show: