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.

Stopping cells being deselected when user right clicks

Thread ID:





52569 Nov 30,2006 07:47 AM Dec 1,2006 09:56 AM Windows Forms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On November 30, 2006 07:47 AM


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 November 30, 2006 11:11 PM

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 09:56 AM

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.

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.