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

Excel-like row header context menu

Thread ID:





34298 Sep 7,2005 03:34 PM UTC Sep 8,2005 12:00 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On September 7, 2005 03:34 PM UTC

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

Administrator [Syncfusion]
Replied On September 8, 2005 12:00 PM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the 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