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.
Syncfusion Feedback

How to keep the selection range while showing the contextmenu?

Thread ID:

Created:

Updated:

Platform:

Replies:

10426 Feb 2,2004 08:11 AM Feb 2,2004 11:28 AM Windows Forms 2
loading
Tags: GridControl
Dongxian Li
Asked On February 2, 2004 08:11 AM

I want to select a range of cells using left mouse button dragging over the cells and then pressing down the right mouse button to show a context menu according to the selected range type. To my surprise, the selection disappeared once you press the right mouse button. How can you keep the selection range there while showing the contextmenu?

Administrator [Syncfusion]
Replied On February 2, 2004 08:37 AM

There is a property that controls which mouse button(s) control selecting cells. Try setting this.gridControl1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left; to see if this does what you want.

Dongxian Li
Replied On February 2, 2004 11:28 AM

Thanks. That solve my problem.

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.

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

;