Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't get the deleted record to go away in the grid.
Message
De
21/06/1996 12:22:31
 
 
À
21/06/1996 11:49:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00002696
Message ID:
00002700
Vues:
32
>That Refresh method only repaints the control, it
>doesn't update the data. Call the =REFRESH()
>function or the =REQUERY() function. Of course
>this does depend upon your use of views to
>populate these grids.

This will remove the record just just delete from the grid. This code is executed from the delete button which is beside the grid. This.Parent.cGrid is a property containg the name of the grid. For example: ThisForm.MultiplePages.Page2.ClientGrid. By resizing the grid temporary to its headerheight and back again to its normal size will referesh the grid for good. Don't forget to put ThisForm.LockScreen to .T. before refreshing and back to .F. after.

* Refresh grid
STORE EVALUATE(This.Parent.cGrid+".HeaderHeight") TO lnOldGridHeaderHeight
=EVALUATE(This.Parent.cGrid+'.SetFocus()')
STORE EVALUATE(This.Parent.cGrid+".Height") TO (This.Parent.cGrid+".HeaderHeight")
STORE lnOldGridHeaderHeight TO (This.Parent.cGrid+".HeaderHeight")
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