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

right-click menu

Thread ID:





63904 Jul 11,2007 12:09 PM UTC Jul 11,2007 05:33 PM UTC WinForms 1
Tags: GridControl
Asked On July 11, 2007 12:09 PM UTC


I'd like the user to be able to right-click on a range of cells and bring up a menu that has copy and paste options. I was wondering how to bring up the right-click menu and how to keep the range of cells highlighted while the user is choosing from the options. Thanks!

haneefm [Syncfusion]
Replied On July 11, 2007 05:33 PM UTC

Hi code12345,

There is an Options property setting that controls which mouse buttons select/unselect cells. The default is for either button to select/unselect cells. To only allow the left button to select/unselect cells, try:

//For GridControl/GridDatabound control:
this.grid.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

//for showing the menu when right mouse button is clicked.
this.grid.ContextMenu = this.contextMenu1;

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

This page will automatically be redirected to the 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