Skip to main content
Table of Contents

TTMSFNCDataGridDatabaseAdapter.DynamicRecordCount Property

When True, the grid's row count follows the records the dataset has fetched so far instead of assuming RecordCount is final. Default is False.

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

Syntax

FMX.TMSFNCDataGridDatabaseAdapter.hppPascalC++
property DynamicRecordCount: Boolean;
__property bool DynamicRecordCount = {read=FDynamicRecordCount, write=FDynamicRecordCount, default=0};

Default: False

Remarks

Use this with datasets that fetch rows on demand, where RecordCount only reports the rows fetched so far. While the dataset is not at Eof, one extra row is added so the user can scroll further; when navigating fetches more records, the row count grows to match. RecordCount is still read.