Right-click de-selects all selected items

I saw a post elsewhere discussing this problem with another of the grid controls, but the remedy does not appear to apply to the data-bound grid.

How can I stop a right-click from deselecting all selected items in my data-bound grid? If the user has 3 items selected and they right-click one of them, it shouldn't de-select 2 of the items.

Thanks

2 Replies

JS Jeba S Syncfusion Team August 16, 2007 04:40 AM UTC

Hi KB,

Thank you for posting query to us.

You can use the SelectCellsMouseButtonsMask property to prevent the right button from affecting any selections.

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


Please refer the sample and let us know if this helps.
http://websamples.syncfusion.com/samples/Grid.Windows/F67349/main.htm

Thank you for using Syncfusion Products.

Best Regards,
Jeba.


KB Kent Boogaart August 16, 2007 05:16 AM UTC

Sweet - thanks.

Loader.
Up arrow icon