>>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