BoundColumn.FormatDataValue(Object) 方法

定義

轉換指定值為 DataFormatString 屬性所指示的格式。

protected:
 virtual System::String ^ FormatDataValue(System::Object ^ dataValue);
protected virtual string FormatDataValue (object dataValue);
abstract member FormatDataValue : obj -> string
override this.FormatDataValue : obj -> string
Protected Overridable Function FormatDataValue (dataValue As Object) As String

參數

dataValue
Object

要格式化的值。

傳回

轉換為 DataFormatString 屬性所指示格式的指定值。

備註

FormatDataValue使用 方法,將指定的值轉換為 屬性所 DataFormatString 指示的格式。

注意

如果未設定 屬性,這個方法會傳回值相等的 DataFormatString 字串。

適用於

另請參閱