Board index » delphi » DBGrid Scrollbar & TQuery problem

DBGrid Scrollbar & TQuery problem

I use a DBGrid (& TRxDBGrid) with aTQuery(PDX) in D4.03 and then at runtime
change the 'where' clause of the Query to narrow down the number of items,
but then the Scrollbar go beserk and although the 'brick' size corresponds
to the number of records, the position always jump to top of bottom &
hottracking also doesn't work porperly.
How can I 'reset' the scrollbar successfully?
Thank you
Anton
 

Re:DBGrid Scrollbar & TQuery problem


Try closing the query and then reopening it after you have changed the SQL
property.  Hope this helps.
Quote
Anton Ekermans wrote:
> I use a DBGrid (& TRxDBGrid) with aTQuery(PDX) in D4.03 and then at runtime
> change the 'where' clause of the Query to narrow down the number of items,
> but then the Scrollbar go beserk and although the 'brick' size corresponds
> to the number of records, the position always jump to top of bottom &
> hottracking also doesn't work porperly.
> How can I 'reset' the scrollbar successfully?
> Thank you
> Anton

Other Threads