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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC Middle Mouse Button events (4.1)

Thread ID:





40364 Feb 1,2006 04:48 PM UTC Feb 14,2006 04:26 AM UTC WinForms 2
Tags: GridControl
Jonathan Jones
Asked On February 1, 2006 04:48 PM UTC

Hi, I cannot get nested tables in a GridGroupingControl to receive middle mouse button events. I can get the top-level table to receive them just fine, but not nested tables. In this case, I wanted to move column sorting and dragging to MB2. The TableControlQueryAllowDragColumn and TableControlQueryAllowSortColumn events get called on MB2 for top-level tables, but not nested tables. Any ideas? Thanks, - Jon

Administrator [Syncfusion]
Replied On February 6, 2006 12:15 PM UTC

Hi Jonathan, By handling the TableControlMouseDown event and applying the sorting you can achieve the Middle MouseButton click for sorting. I have attached a sample. I will also send an updated sample a little later that will allow you to drag nested table columns using the Middle MouseButton. Thanks, Calvin.


Administrator [Syncfusion]
Replied On February 14, 2006 04:26 AM UTC

Hi Jonathan, I apologize for the delay in responding. By handling the TableControlQueryAllowDragColumn and the TableControlQueryAllowSortColumn events, dragging and sorting can be done based on the mouse buttons. Also set the SelectCellsMouseButtonsMask and DragSelectedCellsMouseButtonsMask as mentioned below. this.gridGroupingControl1.TableControl.Model.Options.SelectCellsMouseButtonsMask = ((System.Windows.Forms.MouseButtons)((System.Windows.Forms.MouseButtons.Left | System.Windows.Forms.MouseButtons.Middle))); this.gridGroupingControl1.TableControl.Model.Options.DragSelectedCellsMouseButtonsMask = ((System.Windows.Forms.MouseButtons.Left | System.Windows.Forms.MouseButtons.Middle)); Regards, Calvin.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon