Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid not updating
Message
From
20/01/1997 10:04:07
 
 
To
20/01/1997 07:00:59
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00017851
Message ID:
00017874
Views:
65
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform