Skip to content

TDataSet.BeforeRefresh

Event triggered before the data is refreshed.

Declaration

Source position: db.pas line 1988

public property BeforeRefresh: TDataSetNotifyEvent;

Description

BeforeRefresh is triggered at the start of the TDataset.Refresh method, after the dataset has been put in browse mode. If the dataset cannot be put in browse mode, the BeforeRefresh method will not be triggered. If an exception is raised during the BeforeRefresh method, then the refresh method is cancelled and the dataset remains in the dsBrowse state.

See also

Name Description
TDataset.Refresh Refresh the records in the dataset.
TDataset.AfterRefresh Event triggered after the data has been refreshed.
TDataset.State Current operational state of the dataset.