Look at the afterrowcolchange and grid.textbox keypress events.
If keypess=chr(13) and columnindex = last column then focus on next-to-last column of next row. Look at grids ALlowAddNew (if you havent already)
Another design method might help too. Some shops use the grid as a 'navigator' to populate form TextBoxes, and then edit the text box.
>I am using Visual Foxpro 6.0. In one of my form I am using grid. When user runs the form grid is populated with some records. user is not allowed to add a new row. Only last two columns are allowed to edit. What I want is when user is in last cell of a row after pressing ENTER he should directly go to the next row's cell. If it is possible, how can I check the curernt row and no. of rows in the grid ?
>
>Thanx in Advance.
>
>
>
>Regards
>
>Ashish
Imagination is more important than knowledge