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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to prevent right clicking from changing selected rows?

Thread ID:

Created:

Updated:

Platform:

Replies:

13129 Apr 21,2004 10:13 AM UTC May 4,2004 05:12 PM UTC WinForms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 21, 2004 10:13 AM UTC

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.

Administrator [Syncfusion]
Replied On April 21, 2004 03:15 PM UTC

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

Administrator [Syncfusion]
Replied On 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?

Administrator [Syncfusion]
Replied On May 4, 2004 05:12 PM UTC

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

CONFIRMATION

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.

Warning Icon 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.Close Icon

;