Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid not updating
Message
De
20/01/1997 10:04:07
 
 
À
20/01/1997 07:00:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00017851
Message ID:
00017874
Vues:
70
>Either this is a low memory bug, or something nasty is happening in my code somewhere.

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
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform