[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Refresh the records in the dataset
Source position: db.pas line 1329
public procedure TDataSet.Refresh; |
Refresh posts any pending edits, and refetches the data in the dataset from the underlying database, and attempts to reposition the cursor on the same record as it was. This operation is not supported by all datasets, and should be used with care. The repositioning may not always succeed, in which case the cursor will be positioned on the first record in the dataset. This is in particular true for unidirectional datasets. Calling Refresh results in the triggering of the BeforeRefresh and AfterRefresh events.
Refreshing may fail if the underlying dataset descendent does not support it.
|
Close the dataset |
|
|
Activate the dataset: Fetch data into memory. |
|
|
Event triggered before the data is refreshed. |
|
|
Event triggered after the data has been refreshed. |
lazarus-ccr.sourceforge.net |