Michale,
As I said in the first place you don't need to code all this stuff in controls. You could control it from one central place grid itself :
LPARAMETERS nColIndex
if !mdown() and inlist(lastkey(),9,13)
nodefault
keyboard '{DnArrow}'
endif
Cetin
>Hello Sergey:
>
>
>A grid may have many column,did you have a method to set all column textbox keypress event?
>
>If a use this code in one of the textbox is right?
>
>
>If inlist(nkeycode,13,9)
>
>
>
> skip in(This.parent.parent.recordsource)
>
>nodefault
>
>
>This.parent.parent.setfocus( )
>
>Endif
>
>
>
>
>
>
>
>
>
>Thank you.