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. Image for the cookie policy date
close icon

How to prevent right clicking from changing selected rows?

How can I prevent a right click from changing my grid''s current selection? I took a look at SelectionChanging but it doesn''t seem to tell you if the MouseDown was a RMB or a LMB.

3 Replies

AD Administrator Syncfusion Team April 21, 2004 03:15 PM UTC

Try setting grid.Options.SelectCellsMouseButtonsMask = MouseButtons.Left; Stefan

AD Administrator Syncfusion Team May 4, 2004 04:53 PM UTC

What if you want the Left and right buttons to act the same.. (Like in windows explorer when you select a bunch of files you can use either the right or left button to do a drag of the selected items) grid.Options.SelectCellsMouseButtonsMask = MouseButtons.Left & MouseButtons.Right; would be perfect, unfortunately this wont work.. Other ideas?

AD Administrator Syncfusion Team May 4, 2004 05:12 PM UTC

grid.Options.SelectCellsMouseButtonsMask = MouseButtons.Left | MouseButtons.Right; should work, not ''&''. Stefan

Live Chat Icon For mobile
Up arrow icon