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

GridGrouppingControl: Right mouse click takes selection off.

Thread ID:





46945 Jul 25,2006 02:57 PM UTC Jul 26,2006 10:23 AM UTC WinForms 3
Tags: GridControl
Administrator [Syncfusion]
Asked On July 25, 2006 02:57 PM UTC

I have a GridGrouppingControl and a ContextMenu on it.
I want to do the following functionality:
user select some range, then right click on the table and choose some menu item there.
But now when I right click on the table, selection disappears :(
Yeah, I can select range holding the right button, but I think this is a significant lack of usability.

So, how can I keep range selection on right click?

Administrator [Syncfusion]
Replied On July 26, 2006 04:54 AM UTC

Hi Lev,

Please set the following property to control the behavior of mousebuttons selecting cells.

this.gridGroupingControl1.TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

This will prevent the right mouse button from affecting any selections.

Thanks for using Syncfusion Products.

Administrator [Syncfusion]
Replied On July 26, 2006 04:56 AM UTC

Hi Lev,

Try setting the SelectCellsMouseButtonsMask property to turn off the Right mouse click selection. Please find the code snippet below.

this.gridGroupingControl1.TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

Let me know if this helps.

Administrator [Syncfusion]
Replied On July 26, 2006 10:23 AM UTC

It really works :) Great thanks!


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