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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only