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
785
Ultragrid - mouse wheel event bubbles up to parent container
posted

Hi,

I have a grid on a container form that has its scrollbar displayed.
If I click on the grid to set the focus on one row and then start scrolling with the mouse wheel, the parent container also scrolls.

I tried listening to the MouseWheel event to set the e.Handled = true but it did not fix the problem.

void ultraGrid1_MouseWheel(object sender, MouseEventArgs e)
{
this.OnMouseWheel(e);

HandledMouseEventArgs handledArgs = e as HandledMouseEventArgs;
if (handledArgs != null)
    handledArgs.Handled = true;
}

What am I missing?
Thanks.

Annie

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Annie,

    What version of the grid are you using? This sounds like it might be an old bug that was fixed a long time ago. Are you using the latest service release?

    If you are already using the latest service release or it does not help, then it sounds like this might be a bug.

Reply Children
No Data