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.

GGC Middle Mouse Button events (4.1)

Thread ID:





40364 Feb 1,2006 11:48 AM Feb 13,2006 11:26 PM Windows Forms 2
Tags: GridControl
Jonathan Jones
Asked On February 1, 2006 11:48 AM

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 07:15 AM

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 13, 2006 11:26 PM

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.

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.