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

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 11:15 AM

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


AD Administrator Syncfusion Team May 4, 2004 12:53 PM

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 01:12 PM

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

Loader.
Live Chat Icon For mobile
Up arrow icon