We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Mousewheel scrolling

Thread ID:

Created:

Updated:

Platform:

Replies:

29811 Jun 3,2005 05:19 AM Jun 3,2005 07:24 AM Windows Forms 1
loading
Tags: GridControl
Mike Woolley
Asked On June 3, 2005 05:19 AM

I''m using a grid embedded within my own ScrollableControl. The grid displays a horizontal scrollbar, and the control in which it is embedded displays a vertical one. When I select a row in the grid and move the mousewheel, the grid scrolls horizontally and the parent control scrolls vertically, which is a little confusing to say the least! Can I switch off the mousewheel horizontal scrolling in the grid?

Administrator [Syncfusion]
Replied On June 3, 2005 07:24 AM

You can try deriving the grid class and override OnMouseWheel and not call the base class.
public class MyGridControl : GridControl
{
	protected override void OnMouseWheel(MouseEventArgs e)
	{
		//base.OnMouseWheel (e);
	}
}

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;