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.

Multi Row Right click - Context Menu

Thread ID:





50662 Oct 16,2006 08:38 PM Oct 17,2006 12:35 AM Windows Forms 1
Tags: GridControl
Adam K
Asked On October 16, 2006 08:38 PM

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 12:35 AM

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.

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.