TTMSFNCDataGridDatabaseAdapter.KeepData Property
When True, the grid keeps the loaded cell data when the dataset is closed or disconnected. Default is False.
API unit family: TMSFNCDataGridDatabaseAdapter
Declaring type: TTMSFNCDataGridDatabaseAdapter
Inherited from: TTMSFNCCustomDataGridDatabaseAdapter
Type: Boolean
Syntax
property KeepData: Boolean;
__property bool KeepData = {read=FKeepData, write=FKeepData, default=0};
Default: False
Remarks
When False, closing the dataset clears the grid rows (and, depending on AutoRemoveColumns, its columns), and a data refresh clears the cached values of the bound columns before reloading them. Combine with LoadAllData to keep a static snapshot of the data after closing the dataset.