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
DBChart not refreshing when paging through dataset?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Adrian,
Have you tried calling Series.CheckDataSource method?
Have you tried calling Series.CheckDataSource method?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Adrian,
to refresh the DBChart you have to do it in similar way as in the example you can find into the Demo Features project under :
All Features -> Welcome ! -> DataBase Charts -> Single Record.
Please check the source code of this example.
to refresh the DBChart you have to do it in similar way as in the example you can find into the Demo Features project under :
All Features -> Welcome ! -> DataBase Charts -> Single Record.
Please check the source code of this example.
Pep Jorge
http://support.steema.com
http://support.steema.com