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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Left click and right click with a context menu

Thread ID:





7176 Sep 15,2003 02:37 PM UTC Oct 3,2003 03:16 PM UTC WinForms 3
Tags: GridControl
Justin Holman
Asked On September 15, 2003 02:37 PM UTC

I have a grid with a context menu assigned to it. If I left click in the grid and the line is editable, and then r click in it, the context menu is not shown. I have to click somewhere else, and then right click in the grid to get the context menu to display. Is there a way around this. Thank you, Justin

Administrator [Syncfusion]
Replied On September 15, 2003 04:08 PM UTC

Here is a sample that I think will work for any case. It uses the grid_MouseUp event to handle all right clicks that the grid catches, and dynamically hooks the cellcontrol_MouseUp in CurrentCellControlGotFocus and unhooks it in CurrentCellControlLostFocus.

Justin Holman
Replied On October 2, 2003 09:04 PM UTC

Do you have this sample for VB.NET

Administrator [Syncfusion]
Replied On October 3, 2003 03:16 PM UTC

Converted project is attached. Stefan


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

Live Chat Icon For mobile
Live Chat Icon