|
-
Aug 29th, 2000, 03:32 AM
#1
Thread Starter
Member
At the minute I have a True DBGrid that on the form load event is populated using a SQL stored procedure (an spg) and an event "GetAllRecords". What I have to do is to add a timer control and refresh the grid every 10 seconds while it's active.
Now I know I have to set the timer interval to 10,000, but how do I get the grid to re-populate all the time? Where do I place the code to allow this to happen?
Any ideas? All help appreciated!
Thanx in advance
Gin
-
Aug 29th, 2000, 03:40 AM
#2
Fanatic Member
Hi,
Put the code that calles the stored procedure into its own routine. Call it on the form load and in the timer event. Use the grids rebind method just after you have run the stored procedure.
-
Aug 29th, 2000, 04:33 AM
#3
Thread Starter
Member
Sorry I've just re_read my post!, I have a routine called GetALlRecords that calls the stored procedure to populate the grid from the Form_Load event.
I'll have a go at placing it in the timer event and rebinding the grid!
Thanx for the help Bill.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|