Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid cell focus
Message
 
To
03/11/1999 10:10:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00285933
Message ID:
00286142
Views:
23
>>>I can't believe that I can't figure this out, but how can I change the active cell within a grid based on a user keystroke.
>>>
>>>Specifically, I am using a grid for entering a lot of data. The user will press tab to move across a row, but when they press enter, I want to move down one row and back to the leftmost column.
>>>
>>>On key label just doesn;t seem to have access to activerow and activatecell.
>>>
>>>Thanks
>>
>>Use the KeyPress event of the TextBox or whatever controls you have in your grid.
>
>
Doug,
>Real problem here is not keypress. OTOH using keypress of controls in a grid is coding too much if it would do the same thing. When you need it set form.keypreview to .t. and code in form.keypress.
>Cetin

Good point.

Doug Stalter

"According to the proverb, the best things are the most difficult." -Plutarch
Previous
Reply
Map
View

Click here to load this message in the networking platform