I have fixed this problem. Thanks for your advice.

I override the mouseWheelHandler instead of the scrollVertically for
mouse wheel.


override protected function mouseWheelHandler(event:MouseEvent):void
            {
                if(event.delta<0){
                        event.delta=-1;
                }else{
                        event.delta=1;
                }
                        super.mouseWheelHandler(event);
            }



--- In [email protected], "Luciano Manerich Junior"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>  
> you may override the method scrollVertically from the dataGrid. When
you scroll the mouse, it dispatch an even with the "delta", telling
you how "fast" was the scroll.
>  
> And calling the super.scrollVertically() with an fixed delta = 1.
> 
> ________________________________
> 
> De: [email protected] [mailto:[EMAIL PROTECTED]
Em nome de bigbb_kimo
> Enviada em: terça-feira, 1 de abril de 2008 10:01
> Para: [email protected]
> Assunto: [flexcoders] How to change the mouse scroll range of
datagrid component?
> 
> 
> 
> Hi dear all
> 
> I have a datagrid with information from web service. Each row of the
> datagrid fulfill the screen, so each time only one row will represent
> in the screen. 
> 
> However, I find that when I use the scroll button of my mice to browse
> the datagrid, it scroll down two rows, and display the 3rd row after
> my current row.
> 
> Can I applied some scroll policy to make it scroll down one row each
time?
>


Reply via email to