See FAQ #7967 for example of adding grid's controls in run-time.
>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.
If it's not broken, fix it until it is.
My Blog