isosrl Posted April 18, 2016 Share Posted April 18, 2016 Hi, I need to refresh data of a TUniDBGrid each X minutes, so I use a TUniThreadTimer and in the OnTimer event I close and Open the query but the new data are not refreshed in the grid. I did also a TUniDBGrid.Refresh and/or MainForm.Refresh with no success... But if I put a button and click on it the grid is refreshed... What I miss ? Thanks, Francesco Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 18, 2016 Share Posted April 18, 2016 Hi, Can you make a small test case ?! Best regards. Quote Link to comment Share on other sites More sharing options...
isosrl Posted April 18, 2016 Author Share Posted April 18, 2016 My project get data from SQLServer...even if I post the project, you should have SQLServer installaed and database... Or do you wish to see source code ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 18, 2016 Share Posted April 18, 2016 Yes exemplary code, how you did it, thanks Quote Link to comment Share on other sites More sharing options...
isosrl Posted April 18, 2016 Author Share Posted April 18, 2016 I found the problem ! I have changed TUniThreadTimer with TUniTimer and now works as it should. Thanks for you support ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.