>Ok, in my grid I want the user go to next row whenever he hits enter on the last column, so I put this code in the beforeRowColChange event :
>
>LPARAMETERS nColIndex
>
>IF THIS.ACTIVECOLUMN==THIS.COLUMNCOUNT .AND. LASTKEY()==13
>THIS.ACTIVATECELL(THIS.ACTIVEROW+1,1)
>
>ELSE
>DODEFAULT(nColIndex)
>ENDIF
>
>
>But strangely the code only works within the first 13 rows of the grid, What could be wrong?
>
>TIA
Roman,
ActivateCell's nRow and nCol parameters are indexers to the visible part of grid.
What about a simple code in AftreRowColChange :
LPARAMETERS nColIndex
If nColIndex = 1 and Lastkey()=13 and !Mdown()
Keyboard '{DNARROW}'
EndIf
Cetin