Skip to main content
Table of Contents

TTMSFNCCustomDataGrid.ValueToString Method

Converts a cell value to a string without raising an exception.

API unit family: TMSFNCDataGrid Declaring type: TTMSFNCCustomDataGrid

Overloads

Overload 1

Converts a cell value to a string without raising an exception.

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

Parameters

Name Description
AValue The cell value to convert.

Returns

The text representation; Booleans become 'True' or 'False'; an empty string for an empty value.

Overload 2

Converts a cell value to a string using the specified format settings, without raising an exception.

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

Parameters

Name Description
AValue The cell value to convert.
AFormatSettings Format settings used to format numeric values.

Returns

The text representation, or an empty string for an empty value.