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.

Excel-like row header context menu

Thread ID:





34298 Sep 7,2005 11:34 AM Sep 8,2005 08:00 AM Windows Forms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On September 7, 2005 11:34 AM

Hi, I have a context menu that appears when the user right click on the row header (via handling the Grid.MouseUp event). I also need the context menu to operate on multiple rows, so I set Grid.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left. So far so good. However, this means that a context menu operation on a single row requires two clicks - left click to select the row, then right click to show the menu. I would like to achieve the default Excel behaviour where a simple right click displays the menu, retains any existing row selections, and selects the current row. Is this possible? Thanks Akash

Administrator [Syncfusion]
Replied On September 7, 2005 12:45 PM

I think you can handle a couple of events and get the behavior you want. Here is a little sample. http://www.syncfusion.com/Support/user/uploads/GC_Paint_53efb746.zip

Administrator [Syncfusion]
Replied On September 8, 2005 08:00 AM

Many thanks. Looks like it does exactly what I need.


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.