>I'm using VFP 6 SP5 on Windows ME.
>
>I have a form containing a grid which is bound to a table. I created the grid with the wizard.
>
>When the user enters data into a cell and hits the enter key, the cursor advances to the next field/cell, moving left to right and wrapping when it comes to the end. What the user would like to see is the cursor advancing to the next row and remaining in the same cell/field.
>
>I've tried using the keyboard verb in the lost focus event, but it doesn't work well as other fields are accessed before the cursor comes to rest in the next row, depending on the valid clauses of the other fields. It seems like I'm missing something obvious here - can someone please point me in the right direction? Thanks in advance!
How about something like this in the keypress event using the activatecell method.
LPARAMETERS nColIndex
IF nColIndex=Column # and INLIST(LASTKEY(),4,9,13)
thisform.grid1.ActivateCell(thisform.grid1.Relativerow+1,Column #)
nodefault
ENDIF