Skip to main content

TcxDBDataModeController.SmartRefresh Property

Determines whether to reload all dataset records or only the changed ones.

Declaration

property SmartRefresh: Boolean read; write; default False;

Property Value

Type Default
Boolean False

Remarks

Use the SmartRefresh property to determine the manner in which data controller records are updated. This option is active only if the following conditions are met:

  • Data controller is in default mode (the data controller’s DataModeController.GridMode property is set to False).

  • The key field for the dataset is specified.

  • Data modifications are done by the ExpressQuantumGrid.

If the SmartRefresh property is set to True, the data controller reloads only the changed records. Otherwise, the data controller reloads all dataset records.

Note

If a data controller is in Smart Refresh mode and dataset records are managed via the data controller, the records are automatically updated. If dataset records are modified via the dataset’s methods or by external controls, you need to manually call the UpdateItems method to reload all records with new data.

The default value of the SmartRefresh property is False.

See Also