Select ..ListOfFields.. from yourtable where .F. ; into cursor CursorWithAMeaningfulName readwrite && Create an empty updatable cursor with correct structure Index on field2 tag field2 && Create the index tags you will need later, if any Index on field2 tag field2When you select the data:
Select ..ListOfFields.. from yourtable where ..SomeCondition.. into cursor CurDummy yourform.lockscreen=.T. Select CursorWithAMeaningfulName zap append from dbf('curDummy') yourgrid.refresh() yourform.lockscreen=.F.With this solution you never disconnect the grid from the data source, so you don't have to reset any grid values. And since you don't create any tables, there's no cleaning up to be done.