>Dear Expert
>
>I am trying to enter data in grid from second grid like incremental search as shown in attachment.
>
>But the problem is when I enter data in column2 and press Enter key then control automatically goes to second row.
> It must remain in first row.
>
>
>
>Form is attached, please help
Just a quick shot in the dark but try setting form.KeyPreview = .T.
and in the grid column.text1 put this code in the keypress event
if lastykey() = 13
nodefault
endif
This turns off the enter key while on the grid cell. You can add other code inside the if..endif if you want something else to happen.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn