Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1180
mouse scroll wheel
posted

How to change the number of lines that the mouse scroll wheel will either rise or fall?

Parents
No Data
Reply
  • 53790
    posted

    Hello,

    Based on the above suggestions you probably could use something like the following:


    public Form1()
    {
        InitializeComponent();
        ultraGrid1.MouseWheel += new MouseEventHandler(ultraGrid1_MouseWheel);
    }

    void ultraGrid1_MouseWheel(object sender, MouseEventArgs e)
    {
        if (e.Delta < 0)
        {
          // Determine how exactly you would like to scroll the UltraGrid.If you are using the code below you will scroll 10 rows up/down
       
            ultraGrid1.DisplayLayout.RowScrollRegions[0].ScrollPosition += 7;
        }
        else
        {
           
           ultraGrid1.DisplayLayout.RowScrollRegions[0].ScrollPosition -= 7;
        }
    }

     Please if you have any questions do not hesitate to ask me.
    Regards

Children
No Data