Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set focus to the first row and col in a grid
Message
From
31/12/2007 07:58:56
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01278585
Message ID:
01278591
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
Hi Bhavbhuti,

>Hi all
>
>How to set the focus to the first column and the first row in a grid. I don't know when the user is clicking Save, so I need to go to the first record and set focus to the first visible column (not column no.). This is in a class so I cannot predict column names.
>
>Thanks and regards.

Try:
GOTO TOP IN (thisForm.myGrid.RecordSource)

thisForm.myGrid.Column1.SetFocus()
Good luck!
Erick
Força Sempre!
Strength Always!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform