Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Focus to a Grid
Message
 
To
03/03/2005 16:51:13
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00992577
Message ID:
00992640
Views:
24
>All,
>
> We have several grids in an application. The controls within the columns of the grids are disabled or enabled within the code based on how the user interacts with the application. When we set focus to a column, if there is a disabled control in the the column the grid scrolls so the next column without a disabled control is visible. The problem is that we don't want it to scroll at all. How do we avoid this? Is this a bug or "by design"? If it's a bug, was this behavior fixed in VFP 9?

This is "by design". When there's data in a grid, the focus has to be on a cell. It will be on an enabled cell, if there is one. If you want different behavior, then you need to figure out which column should have the focus and set the focus specifically to that column.
Previous
Reply
Map
View

Click here to load this message in the networking platform