TCustomDBChart.RefreshDataSet

TCustomDBChart.RefreshDataSet
TCustomDBChart

procedure RefreshDataSet(Const ADataSet: TDataSet; Const ASeries: TChartSeries);

Unit
DBChart

Description
The RefreshDataSet method will atempt to retrieve all records from the ADataSet parameter and add all points to ASeries parameter.

You associate DataSets ( Tables, Queries, etc ) to Series by setting the Series DataSource property.

This method works only with Active Series, that is, ASeries.Active must be True.

It only retrieves again all records and adds all Series points. The current DataSet filter is preserved. The current record position is saved and restored after loading all point by using a TBookMark internal variable.

For each record, you can optionally use the OnProcessRecord event to stop adding more points and retrieving more records.

When refreshing datasets, the mouse cursor can be automatically to a glass cursor by using the TDBChart.ShowGlassCursor property.