Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid not updating
Message
From
20/01/1997 12:38:41
 
 
To
20/01/1997 10:04:07
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00017851
Message ID:
00017885
Views:
61
>I've seen something weird in the grid related to the appended record.
>
>After my append, I usually do this code to force a refresh. My problem was that sometimes, the appended record was not shown. So, I solved this by using this code. Maybe it might help you.
>
>* Force a refresh of the grid by zooming
>* the header height to the full size of the grid
>* In this example, Recherche is the name of the grid
>LOCAL llOldLockScreen,lnOldRechercheHeaderHeight
>llOldLockScreen=_screen.ActiveForm.LockScreen
>lnOldRechercheHeaderHeight=_screen.ActiveForm.Recherche.HeaderHeight
>_screen.ActiveForm.LockScreen=.T.
>_screen.ActiveForm.Recherche.SetFocus()
>_screen.ActiveForm.Recherche.HeaderHeight=_screen.ActiveForm.Recherche.Height
>_screen.ActiveForm.Recherche.HeaderHeight=lnOldRechercheHeaderHeight
>_screen.ActiveForm.LockScreen=llOldLockScreen


Ahhhh, Nice solution!

That confirms my problem with refreshing, and might solve the problem without a Skip/Skip-1 which will be relatively slow across a LAN.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform