Use the LockCurrentRecord method to manually lock the current row. Row locks established via this method are persistent and are maintained across any Edit or Delete calls. You must manually unlock any rows locked using this method via the UnlockCurrentRecord or UnlockAllRecords methods.
Any row locks established using this method are automatically unlocked when the current dataset is closed.