Skip to main content
Table of Contents

TTMSFNCCustomDataGridDatabaseAdapter.InsertRow Method

Starts a new dataset record at the position of a grid row.

API unit family: TMSFNCDataGridDatabaseAdapter Declaring type: TTMSFNCCustomDataGridDatabaseAdapter

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
procedure InsertRow(ARow: Integer); override;
virtual void __fastcall InsertRow(int ARow);

Remarks

Moves the dataset to the row's record and calls TDataSet.Insert, or TDataSet.Append when ARow is past the last data row. Does nothing while the dataset is already in edit or insert mode. An inserted record that is left without changes is cancelled when the user moves to another row.

Parameters

Name Description
ARow Grid row index. Pass the row after the last data row to append.