Skip to main content
Table of Contents

TTMSFNCCustomDataGridDatabaseAdapter.ConvertFieldToData Method

Converts the current value of a dataset field into a cell value, applying OnFieldToData and the default conversion.

API unit family: TMSFNCDataGridDatabaseAdapter Declaring type: TTMSFNCCustomDataGridDatabaseAdapter

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
procedure ConvertFieldToData(ACell: TTMSFNCDataGridCellCoord; AMasterField, AField: TField; var ACellValue: TTMSFNCDataGridCellValue);
void __fastcall ConvertFieldToData(const TTMSFNCDataGridCellCoord &ACell, Data::Db::TField* AMasterField, Data::Db::TField* AField, TTMSFNCDataGridCellValue &ACellValue);

Parameters

Name Description
ACell Grid cell the value is for; passed on to OnFieldToData.
AMasterField For a lookup field, its key field; otherwise nil.
AField Field to read, at the dataset's active record. Nothing happens when it is nil.
ACellValue Receives the converted value.