Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing a grid after a requery
Message
From
19/09/2006 06:37:50
 
 
To
19/09/2006 05:11:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01155001
Message ID:
01155019
Views:
31
>Hi all,
>
>Could anyone tell me how to refresh a grid after a record is deleted, which has a view as it's record-source, and all rows of the view are not represented in the grid. Using a requery after setting the recordsource to '', then setting the recordsource to the view again, does not show the relevant changes on the grid, besides causing a distortion to the order and the controlsource of the columns.
>
>Thanks very much.
>
>With best regards,
>
>Steve.

with REQUERY() the setting the recordsource to '' is not necessary.

try:
REQUERY()
grid.Refresh
grid.SetFocus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform