Solved

I need help refreshing a datagridview in VB.Net 2005

Posted on 2009-04-01
3
334 Views
Last Modified: 2012-06-21
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.

MainRotor
0
Comment
Question by:mainrotor
3 Comments
 
LVL 27

Accepted Solution

by:
nmarun earned 250 total points
ID: 24038819
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 250 total points
ID: 24038821
here is the sample how you can work with the timer control
http://www.vbdotnetheaven.com/UploadFile/mahesh/TimerControl04262005033148AM/TimerControl.aspx

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
0
 

Author Comment

by:mainrotor
ID: 24039499
Thank you nmarun and raqi0017.  I will look at the links you have provided and post my results.

mainrotor
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now