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.

right-click menu

Thread ID:

Created:

Updated:

Platform:

Replies:

63904 Jul 11,2007 08:09 AM Jul 11,2007 01:33 PM Windows Forms 1
loading
Tags: GridControl
John
Asked On July 11, 2007 08:09 AM


Hi,

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 01:33 PM

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,
Haneef

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.

;