Stopping cells being deselected when user right clicks

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

2 Replies

AD Administrator Syncfusion Team 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


AD Administrator Syncfusion Team December 1, 2006 02:56 PM UTC

Thanks, that worked!

Steve

Loader.
Up arrow icon