Making controls refresh in Delphi

I have an application that I am running in the IDE. It has some TDBGrid controls which scroll as my program works through various database tables. I placed some other controls on the form to indicate progress but these don't update till the program has finsihed. I cannot figure out why! Any suggestions?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

use Refresh method of a control You want to refresh immediately after operation.
Otherwise it refreshes in some idle time.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Use Application.ProcessMessages within your code where you would like the updates to occur.
I'm not sure if this is what is needed in this case, but sometimes I have found that calling the Repaint method is the best way to get a control to immediately redisplay itself. Repaint is a public virtual method of TControl.
riskassessorAuthor Commented:
Thanks to everyone for solutions.

Refresh (of either the form or control) works. Just put it in the code where you want the control/form to update.

Application.ProcessMessages also works. (You need to include Forms in Uses)

Repaint works interchangeably with Refresh (seem to be different names for same command).

Thanks again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.