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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

Hi,

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?

Thanks
Steve

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,
Haneef

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

Thanks, that worked!

Steve

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.

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

;