• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 353
  • Last Modified:

I need help refreshing a datagridview in VB.Net 2005

Hi all,
I am using a DataGridView in one of my forms.   I want the datagridview to refresh every 5 minutes.  I know I need to use a timer control, but I don't know how to use it.  How can I do this?  Thanks in advance.

2 Solutions
Anurag ThakurTechnical ManagerCommented:
here is the sample how you can work with the timer control

in the timer_tick event you can connect to the database bring in the new data and then bind the datagridview to show the refreshed data
you can set the timer to fire after 5 minutes - the timer takes values in milliseconds
mainrotorAuthor Commented:
Thank you nmarun and raqi0017.  I will look at the links you have provided and post my results.

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.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now