Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving in a grid
Message
From
04/01/2001 16:02:34
 
 
To
04/01/2001 15:44:41
Cgi Int
p2 Software Consultancy
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00459533
Message ID:
00459554
Views:
20
>i have a grid with about a 100 rows, i want to use the ENTER key to enable the user to move to the start of a new row when he reaches the last column.
>at present it come to the start of the same row. the row does not change.

In the LostFocus event of the control that is the CurrentControl of the last column in the grid, put the following.
If LastKey() = 13 && Enter
     With this.Parent.Parent
          .Column1.SetFocus()
          Skip In (.RecordSource)
     EndWith
EndIf
The first column's name should be used instead of Column1, unless, of course, the first column's name is Column1 :)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform