There is a Scrolled event on the grid (see help for more information). Based on the parameter passed to it, you can determine which way it scrolled and by what method.
>>I'm not sure if this will help but check out OBJTOCLIENT(). It will give you the X,Y coordinate of the header based on its form position.
>>
>>HTH.
>
>This works very fine! Now I would like to trigger the event that the grid has scrolled. this can happen when the user clicks on the horizontal scrollbar and also when the user tabs through the grid columns.
>I would have to use the click even, determining the position of the mousepointer on the scrollbar, and the keypress event on the textboxes in the grid. Maybe someone knows how to do that more easy?
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao