Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing grids in multiuser enviroment
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00828090
Message ID:
00828201
Views:
10
Hi Robin,
I think all you need is that the grid gets the focus in order to refresh.
The code that I use in the timer is:
with thisform
  if not (.adding or .editing) && don't want the refresh while adding/editing
     loActiveControl = .ActiveControl
     .GrdStrip.SetFocus
     loActiveControl.setfocus
  endif
endwith
HTH

to set focus to
>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
Doru
Previous
Reply
Map
View

Click here to load this message in the networking platform