try
lnRecno=RECNO('myfile')
DO FORM AnotherForm with lnRecno
GO lnRecno IN myfile
thisform.grid.column1.SetFocus()
you may need to use keys if you are doing a requery of your view.
Geoff
>I have a grid list which displays a local view.
>These are the settings of some of the properties of the grid:
>
>DeleteMark = .F.
>AllowAddNew = .F.
>ReadOnly = .T.
>RecordMark = .F.
>SplitBar = .F.
>
>I also have several command buttons below the grid one of which is an "Edit button". When clicking on the 'Edit' command button, I pop up "Edit" screen with DO FORM.... and I allow and edit of the fields of the current record the user is on within the grid. I issue a TABLEUPDATE() command to save changes and Refresh() the grid to display the modifications.
>
>My problem is that my grid record pointer goes back to the top of the grid (beginning of the local view). I wish that the pointer stay on the record the user selected without automatically moving to the top.
>
>Is there a way of achieving this?
>
>Thanks to all!
May all your weeds be wildflowers