Hi Moises!
The record pointer of the grid should move, it is just matter of issuing refresh on the grid.
eg.
** Put this code at lostfocus event of your text box
local lcValue
lcValue = allt(this.value)
if lastkey()=13 &&
this.parent.grid1.setfocus()
locate for left(name,len(lcValue)) = lcValue
this.parent.grid1.refresh()
endif