TTMSFNCDataGridDatabaseAdapter.AutoRemoveColumns Property
When True (default), the column mappings and grid columns are removed when the dataset closes or the data source is disconnected.
API unit family: TMSFNCDataGridDatabaseAdapter
Declaring type: TTMSFNCDataGridDatabaseAdapter
Inherited from: TTMSFNCCustomDataGridDatabaseAdapter
Type: Boolean
Syntax
property AutoRemoveColumns: Boolean;
__property bool AutoRemoveColumns = {read=FAutoRemoveColumns, write=FAutoRemoveColumns, default=1};
Default: True
Remarks
When the dataset closes (and KeepData is False), the whole Columns collection is cleared only if it contains no explicitly defined fields (see TTMSFNCDataGridDatabaseAdapterColumns.HasFieldsDefined); when no data source or dataset is linked any more, it is cleared regardless. Nothing is removed while the form is loading.