Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Row control in grid
Message
From
13/02/2003 10:56:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00752701
Message ID:
00752706
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>I have a 2-column grid, (with a table as the record source), with the first column containing a description, and the second column contains a single digit, (valid entries are 1, 2, and 3). The first column is disabled, so when the grid has focus, column 2 is in focus.
>
>In order to "auto-advance" to the next row, I have code in the keypress event to test for the enter key or tab key to move to the next row, and it works. In the valid event, I check for valid code, (1/2/3). If the entry is valid, I want to advance to the next row, and stay on the current if it is invalid.
>
>The keypress event is firing before the valid event, and the row advance is not done after the valid entry is determined.
>
>Can someone help?
>
>Thanks,
>
>Harry

Harry,
What about using lostfocus instead of valid+keypress.
or grid.arcc, brcc
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform