DBChart not refreshing when paging through dataset?
Posted: Thu Jun 21, 2007 10:08 pm
Hi
I have the following setup:
Form with DBChart1, with one series, that references dataset IBOQuery2
DBGrid that references dataset IBOQuery2
DBNavigatorBar that references dataset IBOQuery1
IBOQuery1 = master Query.
IBOQuery2 = Child Query, that just references the active record in IBOQuery1.
Now the DBChart should show the active record, and so too the DBGrid.
I run the application.
The first record shows correctly in the chart, and the grid.
when I click on next record, the DBGrid updates to accurately reflect the next record, but the DBchart does not!
I tried setting DBChart.AutoRefresh to true, but doesn't help.
The only way I got the chart to update its display when scrolling the datset, was to create an onclick event for the Navbar, and then DBChart1.RefreshData;
Is this behaviour correct. Shouldn't the chart refresh itself, when the datasets data changes, as I scroll through it with the navbar?
Regards
Adrian
I have the following setup:
Form with DBChart1, with one series, that references dataset IBOQuery2
DBGrid that references dataset IBOQuery2
DBNavigatorBar that references dataset IBOQuery1
IBOQuery1 = master Query.
IBOQuery2 = Child Query, that just references the active record in IBOQuery1.
Now the DBChart should show the active record, and so too the DBGrid.
I run the application.
The first record shows correctly in the chart, and the grid.
when I click on next record, the DBGrid updates to accurately reflect the next record, but the DBchart does not!
I tried setting DBChart.AutoRefresh to true, but doesn't help.
The only way I got the chart to update its display when scrolling the datset, was to create an onclick event for the Navbar, and then DBChart1.RefreshData;
Is this behaviour correct. Shouldn't the chart refresh itself, when the datasets data changes, as I scroll through it with the navbar?
Regards
Adrian