Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Control
Message
 
To
30/01/2003 17:22:48
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00747139
Message ID:
00747790
Views:
11
Dear Javier,

My problem was entering data in text fields and after pressing Enter or Tab key going to the left cell instead of right. I did it by calling Grid.ActivateCell(nRow, nCol) in Keypress event of text boxes of every column after detecting that nKeyCode = 13 or nKeyCode = 9 .
But for supporting scrolling grids, I used Grid.Relativecolumn properties and I decreased it for going to the left.

I checked your idea, It's working ! by using the following code in lostfocus event of each text box.

IF LASTKEY() = 13 OR LASTKEY() = 9
This.Parent.Parent.column2.text1.SetFocus
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform