Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrolling in a grid
Message
From
23/05/2012 18:51:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Scrolling in a grid
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01544223
Message ID:
01544223
Views:
71
I have a grid on which I have set the LockColumns property to 5.

When the user Left Arrows into column 5 I want everything set to bypass the first five columns and move to the last column in the grid. To accomplish this I put RETURN .F. in the WHEN of each of the TextBoxes associated with the first five columns of the grid. This seems to be working when moving into Column 5.

However, when Right Arrow from the Last column into Column 1, I expected the focus to go to Column 6. Instead it goes to Colum 24.

There are 48 columns in the grid.
The controlsources for the grid columns do not much the field order of the underlying cursor (not sure this matters but just in case)

Does anybody have an explanation of why the behavior is different when moving right or left?

Is there a better way of getting what I want by using partitions and essentially hiding Columns 1-5 from the Right partition (tried that but never got it to work)

Thanks to all..........Rich
Reply
Map
View

Click here to load this message in the networking platform