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.
Unfortunately, activation email could not send to your email. Please try again.

How to prevent right clicking from changing selected rows?

Thread ID:

Created:

Updated:

Platform:

Replies:

13129 Apr 21,2004 06:13 AM May 4,2004 01:12 PM Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 21, 2004 06:13 AM

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

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

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

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

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.

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.

;