Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Requery a 6.0 Grid
Message
From
06/05/2000 17:04:35
 
 
To
20/03/2000 08:43:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00347821
Message ID:
00367006
Views:
32
You need to assign the Recordsource property of the grid to a cursor with the same structure, perform your requery, then restore the RecordSource property to it's original value.

e.g.

lcAlias = thisform.oGrid.RecordSource
=AFIELDS(laFields, lcAlias)
CREATE CURSOR tmp FROM ARRAY laFields

thisform.oGrid.RecordSource = "tmp"

*---------------------------------*
*-- Requery code would go here --*
*---------------------------------*

thisform.oGrid.RecordSource = lcAlias
thisform.oGrid.Refresh()

USE IN tmp


>When using a grid in VFP 6.0 how do you update a grid record source without disrupting all its properties?
Previous
Reply
Map
View

Click here to load this message in the networking platform