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.

GridGroupingControl and middle mouse button (3.3.0.0)

Thread ID:

Created:

Updated:

Platform:

Replies:

35214 Sep 26,2005 03:09 PM Sep 29,2005 10:21 AM Windows Forms 2
loading
Tags: GridControl
Jonathan Jones
Asked On September 26, 2005 03:09 PM

Hi, I would like to move the column dragging and sorting behavior of a grid grouping control from the left mouse button to the middle mouse button. I want to do this so I can implement more excel-like behavior in a grid grouping control (MB1 on column headers performs selection operations in excel). How do I go about changing this behavior? Thanks, - Jon

Administrator [Syncfusion]
Replied On September 28, 2005 08:06 AM

Hi Jon, It''s currently hard-coded to use the left mouse button. What you would have to do is copy/pase the source code GridTableControlDragHeaderMouseController and GroupDropAreaDragHeaderMouseController to your project, rename these classes and register them as your mouse controllers. The HitTest method there checks for MouseButtons.Left. But this make sense to be added as an event and/or property so that you can choose which button. That would be easier. If you are interested in this let me know and we can create a private patch. (Please create a dtrac incident then and refer to this thread). Thanks, Stefan > >I would like to move the column dragging and sorting behavior of a grid grouping control from the left mouse button to the middle mouse button. I want to do this so I can implement more excel-like behavior in a grid grouping control (MB1 on column headers performs selection operations in excel). > >How do I go about changing this behavior? > >Thanks, >- Jon

Jonathan Jones
Replied On September 29, 2005 10:21 AM

Hi Stefan, Yes, I would be interested in a private patch, but I may still need to do the custom mouse controller. I still need MB1 to work, but for a different purpose. Ideally, I''d like MB2 to do the column dragging and sorting currently bound to MB1, and MB1 to provide the "traditional" excel-like behavior (clicking on a column header selects the column, clicking and dragging the mouse across multiple columns selects them all in sequence, etc). It would be really useful if GGC behaved this way out of the box. If I do get a private patch, I need to make sure that I can still change MB1 to do what I want. Is this possible? Thanks for all your help! - Jon

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.

;