Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing grids in multiuser enviroment
Message
From
11/09/2003 08:09:56
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00828090
Message ID:
00828098
Views:
11
Robin,

I hope you have all Column headers populated from the field name or else you'll have additional coding to deal with the headers caption.
cRSource = thisform.GridStrip.recordsource 
thisform.GridStrip.recordsource = ""
thisform.GridStrip.recordsource = cRSource
** that is where you'd restore the headers and 
** control source if not all your fields are shown in the grid 
** something like : thisform.GridStrip.column1.header1.caption = "Col1"
** thisform.GridStrip.column1.text1.controlsource = "YourTable.theFldName"
That should refresh your grid.

Yanick

>Hi! I have a grid that is the central table of my project, I know you shouldn't really use a grid in most cases for maintenance, but in this case the grid is really what is needed.
>
>I'm using no buffering at all, because I want up to three users to add to the grid at the same time, so there's no edit mode or whatever.
>
>I was told some time ago to forget the browse command, and use a grid in a form.
>
>How do I get the grid to refresh every say 10 seconds, like the set refresh command in a browse window.
>
>I set up a timer event and put in the code
>
>thisform.GrdStrip.Refesh()
>
>But the grid does not contain any new information when it's refreshed?
>
>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform