Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I set the focus to a particular row in a grid?
Message
From
02/06/2003 18:06:59
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00795438
Message ID:
00795443
Views:
19
This message has been marked as the solution to the initial question of the thread.
Hi Eddie.

I would like to place code in the click method of the command buttons
to set the focus back to the row that the user was on before he hit the command button.


Unless something has changed the position of the record pointer in the grid's RecordSOurce, you get this behavior for free - no code required - just by setting focus to the grid.

You do not want to be messing around with the grid's ActiveRow porperty because it is painfully slow. If something is changing the record pointer, just save the record number somewhere and go back to the record before setting focus to the grid.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform