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

How to keep the selection range while showing the contextmenu?

Thread ID:

Created:

Updated:

Platform:

Replies:

10426 Feb 2,2004 01:11 PM UTC Feb 2,2004 04:28 PM UTC WinForms 2
loading
Tags: GridControl
Dongxian Li
Asked On February 2, 2004 01:11 PM UTC

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 01:37 PM UTC

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 04:28 PM UTC

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.

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

;