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
close icon

Context Menu

In using the grid with a ContextMenuStrip, the context menu does appear with the right click except it also continues to select the row wherever I right clicked. How do I prevent that selection from occuring?

2 Replies

AD Administrator Syncfusion Team February 1, 2006 06:55 AM UTC

Hi, Setting the this.gridControl1.SelectCellsMouseButtonsMask = ((System.Windows.Forms.MouseButtons)((System.Windows.Forms.MouseButtons.Left | System.Windows.Forms.MouseButtons.Middle))); will prevent the row from getting selected when it is right clicked. Regards, Calvin.


VA va February 2, 2006 03:52 PM UTC

Oh! I missed it and this was obvious. Thank you.

Loader.
Live Chat Icon For mobile
Up arrow icon