General information
Category:
Coding, syntax & commands
Title:
Scrolling in a grid
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
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