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

Excel-like row header context menu

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

2 Replies

AD Administrator Syncfusion Team September 7, 2005 04:45 PM UTC

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


AD Administrator Syncfusion Team September 8, 2005 12:00 PM UTC

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

Loader.
Live Chat Icon For mobile
Up arrow icon