Link to home
Start Free TrialLog in
Avatar of hawkerpac
hawkerpac

asked on

How to auto refresh the data in my TBGRID which is linked with TADO Query / TDatasource?

I have the data displayed in the Grid. Right now when they click the update button the data gets refreshed. How can i automate the update. Like every 5 mins i would like the data to be refreshed?

Thanks in Advance.
Avatar of Thommy
Thommy
Flag of Germany image

Use a TTimer and call TAdoQuery.Refresh in OnTimer event...
You can also try using DBGrid.refresh...
Avatar of hawkerpac
hawkerpac

ASKER

can you please give me the syntax? code?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Thommy
Thommy
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial