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. Image for the cookie policy date

How to keep the selection range while showing the contextmenu?

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?

2 Replies

AD Administrator Syncfusion Team 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.


DL Dongxian Li February 2, 2004 11:28 AM

Thanks. That solve my problem.

Loader.
Live Chat Icon For mobile
Up arrow icon