?
Solved

I need help refreshing a datagridview in VB.Net 2005

Posted on 2009-04-01
3
Medium Priority
?
351 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 750 total points
ID: 24038819
0
 
LVL 26

Assisted Solution

by:Anurag Thakur
Anurag Thakur earned 750 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month15 days, 12 hours left to enroll

850 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