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

Stopping cells being deselected when user right clicks

Thread ID:





52569 Nov 30,2006 12:47 PM UTC Dec 1,2006 02:56 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On November 30, 2006 12:47 PM UTC


I'd like users to be able to select multiple cells and then right click to show a context menu relating to all of the selected cells.

Unfortunatly any previously selected cells get deselected when the right mouse button is clicked. Is there a way to stop this?


Administrator [Syncfusion]
Replied On December 1, 2006 04:11 AM UTC

Hi Steve,

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

this.grid.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

This will prevent the right mousebutton from making any selections.

Best Regards,

Administrator [Syncfusion]
Replied On December 1, 2006 02:56 PM UTC

Thanks, that worked!



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

This page will automatically be redirected to the 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