SELECT MyTable && Yes, it's open !! THIS.PARENT._grid1.SETFOCUS && Should ensure correct activerow IF THIS.PARENT._grid1.ActiveRow <> 0 && Error occurs DELETE THIS.PARENT._grid1.REFRESH ENDIFSo I tried
SELECT MyTable TRY THIS.PARENT._grid1.SETFOCUS && Add nActiveRow in setfocus IF THIS.PARENT._grid1.nActiveRow <> 0 DELETE THIS.PARENT._grid1.REFRESH ENDIF CATCH TO oException ENDTRYThis does not produce an error, but on the other hand nothing happens, because the activerow is always zero.