Skip to main content
Table of Contents

TTMSFNCDataGridDatabaseAdapter.EditSetData Method

Writes the value from an in-place editor to the field shown in a grid cell.

API unit family: TMSFNCDataGridDatabaseAdapter Declaring type: TTMSFNCDataGridDatabaseAdapter Inherited from: TTMSFNCCustomDataGridDatabaseAdapter

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
procedure EditSetData(ACell: TTMSFNCDataGridCellCoord; AInplaceEditor: TTMSFNCDataGridInplaceEditor; var AValue: TTMSFNCDataGridCellValue); override;
virtual void __fastcall EditSetData(const TTMSFNCDataGridCellCoord &ACell, TTMSFNCDataGridInplaceEditor* AInplaceEditor, TTMSFNCDataGridCellValue &AValue);

Remarks

Moves the dataset to the cell's record, puts it into edit mode, writes the value through ConvertDataToField (for a lookup column, into the key field), and refreshes the grid. The record is not posted; it is posted when the dataset moves to another record or DataSetPost is called.

Parameters

Name Description
ACell Grid cell that was edited.
AInplaceEditor Editor that produced the value, or nil.
AValue The edited value. For a TTMSFNCDataGridDatabaseAdapterColumn.CheckBoxField column it is replaced by the grid column's boolean true or false value before it is written.