General information
Category:
Coding, syntax & commands
Title:
Howto Shift Focus Out Of A Grid
Hello everyone,
I would like to know the best way to programatically move focus "away" from a grid that currently has focus. In the form in question, just after it opens for the first time, I call a method on the grid that scrolls to the correct position in the grid and sets focus to the appropriate column depending on the current order of the grid's recordsource (if there is a column in the grid that is based on the current order).
The problem is that after "sorting" the grid out for the first time, I actually want to focus on a particular control on the form. However, even after calling the control's Setfocus method, focus still stays with the grid (FYI, the grid is in a container that is in page #1 of a pageframe).
So, if anyone knows how to shift focus away from the grid to a nominated control, I would really appreciate any tips.
Thanks!
Regards,
Angie.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only