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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multi Row Right click - Context Menu

Thread ID:





50662 Oct 17,2006 12:38 AM UTC Oct 17,2006 04:35 AM UTC WinForms 1
Tags: GridControl
Adam K
Asked On October 17, 2006 12:38 AM UTC

I am using version 3.3 in virtual grid mode.

I have a context menu. I show this menu on the

_HPGrid_MouseDown event, if e.Button == MouseButtons.Right.

When i select multiple rows and right click, the grid hightlight changes to ONLY highlight the row where my mouse in on instead of keeping all the rows highlight that were initally selected.

If you do this in Excel, it keeps all the rows selected (and allows you to do functions on the entire range).

Why is it changing the focus?

Do you have sample code to show this working in a mode where all the rows stay highlighted.

I want to add Right click context menu event that will perform actions on multiple rows.


Administrator [Syncfusion]
Replied On October 17, 2006 04:35 AM UTC

Hi Adam,

Please set the following property to control the behavior of mousebuttons selecting cells.

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

This will prevent the right button from affecting any selections.

For details, refer the following KB article

Let me know if this is not what you wanted.

Best Regards,


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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