Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid not updating
Message
De
20/01/1997 12:38:41
 
 
À
20/01/1997 10:04:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00017851
Message ID:
00017885
Vues:
65
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform