Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Turn off grid scrolling??
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01403908
Message ID:
01404400
Views:
55
>>Is there a way to prevent a grid from scrolling? I have a grid on a form where, in many cases, there are fewer records than there is space on the grid. Sometimes as my code runs or if the user hits the mouse wheel some number of records scroll up off the screen. I would like to stop the scrolling till the record count is more that will fit on the grid.
>>
>>I tried using NoDefault in the DoScroll but it did nothing.
>>TIA
>
>Perhaps you can calculate if the number of records fits into the grid - don't show scrollbars?
>
>That's just the first idea that comes to mind.

Naomi,
Thanks for the suggestions. I tried turning off the scroll bars but it didn't really change anything. I'm going to have to do a locate, refresh(), and then DoScroll to get it where I need it.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform