Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing Grid based on updateable view
Message
 
To
10/10/1999 14:38:54
Jill Derickson
Software Specialties
Saipan, CNMI
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00274669
Message ID:
00274829
Views:
27
>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()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform