Skip to main content
Table of Contents

TTMSFNCCustomDataGridDatabaseAdapter.SetActiveRecord Method

Makes the buffered record of a grid row the data link's active record, so field values can be read for that row.

API unit family: TMSFNCDataGridDatabaseAdapter Declaring type: TTMSFNCCustomDataGridDatabaseAdapter

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
function SetActiveRecord(ARow: Integer): Boolean; virtual;
virtual bool __fastcall SetActiveRecord(int ARow);

Remarks

This does not scroll the dataset or change the grid selection; it only switches DataLink.ActiveRecord within the currently buffered records. The previous active record is saved; call ResetActiveRecord afterwards to restore it.

Parameters

Name Description
ARow Grid row index.

Returns

True when the row's record is in the data link buffer and was activated; False when it is not buffered, in which case the active record is left unchanged.