Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing Grid based on updateable view
Message
 
À
10/10/1999 14:38:54
Jill Derickson
Software Specialties
Saipan, CNMI
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00274669
Message ID:
00274829
Vues:
26
>Jim, I've been using the Requery("TheView") to update the data in the view, but recently discovered the Refresh() function...are you implying that Refresh() is only applicable when a row changes...not when adding a row? it seems like it is much faster to just update a row, rather than the whole view.
>
>>Jill,
>>
>>Before you refresh the grid you need to Requery("TheView")

Jill,

The grid's Refresh will refresh the display of data in the grid. It will not "refresh" the contents of the view. To get the view to have the newly appended record you must reissue the SELECT command associated with the view and that is what Requery() does. You probably need both of them;

Requery("TheView")
Thisform.Grid1.Refresh()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform