You can create textbox class with required code and replace grid default textbox controls with it.
>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.
--sb--