Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incremental Search
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01563696
Message ID:
01563761
Views:
150
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform