Skip to main content
Table of Contents

TTMSFNCDataGridData.ValueToString Method

Converts a cell value to text using the default format settings.

API unit family: TMSFNCDataGridData Declaring type: TTMSFNCDataGridData

Overloads

Overload 1

Converts a cell value to text using the default format settings.

FMX.TMSFNCDataGridData.hppPascalC++
class function ValueToString(AValue: TTMSFNCDataGridCellValue): string; overload;
__classmethod System::UnicodeString __fastcall ValueToString(const TTMSFNCDataGridCellValue &AValue)/* overload */;

Parameters

Name Description
AValue Cell value to convert.

Returns

The text; an empty string for an empty value.

Overload 2

Converts a cell value to text using the supplied format settings for numbers and dates.

FMX.TMSFNCDataGridData.hppPascalC++
class function ValueToString(AValue: TTMSFNCDataGridCellValue; AFormatSettings: TFormatSettings): string; overload;
__classmethod System::UnicodeString __fastcall ValueToString(const TTMSFNCDataGridCellValue &AValue, const System::Sysutils::TFormatSettings &AFormatSettings)/* overload */;

Parameters

Name Description
AValue Cell value to convert.
AFormatSettings Locale settings used to format numbers and date/time values.

Returns

The text: Booleans as 'True'/'False', date/time types in their date or time format, a string list as its full text, and an empty string for an empty value.