Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor to next row in grid if last column looses focus
Message
From
10/06/2009 06:53:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Application:
Desktop
Miscellaneous
Thread ID:
01404923
Message ID:
01404932
Views:
118
This message has been marked as the solution to the initial question of the thread.
>Hi all
>
>Sometime back I had received help here to achieve this, but it fell apart when the users started to switch column order and some columns being disabled thus never getting focus. The basic idea is this, assuming head-down data-entry, the user goes through each and every column that is available and when the last column looses focus for the current row the cursor moves to the next rows first column. The last and first columns are those columns that are user enterable but can be a readonly column and not necessary the first and last column of design-time.
>
>Please advise.
Procedure myGrid.AfterRowColChange
Lparameters nIndex
If m.nIndex = 1 And ;
      this.RowColChange = 2 And ;
      INLIST(Readkey(),5,15,261,271)
  Keyboard '{DNARROW}'
Endif
Endproc
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