Solved

I need help refreshing a datagridview in VB.Net 2005

Posted on 2009-04-01
3
343 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

717 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