Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent GRID from scrolling?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00870775
Message ID:
00870779
Views:
7
This message has been marked as the solution to the initial question of the thread.
>I am using a grid to present 12 rows x 10 columns of data. The scroll bars are off. There seems to be plent of room at the bottom to accomodate the 12 rows and then some. Despite this, when down arrow is pressed while a cell in the last row has focus, the grid tends to move up a row.
>
>I've found that if the grid height = 13 rows (plus a few more pixels), the scroll will not be forced at down arrow.
>
>I am using VFP 8 and AllowAdd is False.
>
>Thanks!

Hi Terry,

Did you try to play with column(s).Textbox.KeyPress() event? By intercepting and reacting to the ceratin keystrokes you can make the behavior pretty much anything you want. Try conditional NODEFAULT for the down arrow keystroke. Once I made a form with the grid that worked like a spreadsheet.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform