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

Cannot get mouse event on active cell

Thread ID:





8794 Nov 20,2003 10:41 AM UTC Nov 20,2003 04:35 PM UTC WinForms 1
Tags: GridControl
Tim Jackson
Asked On November 20, 2003 10:41 AM UTC

If I have a cell in a grid, and that cell is active to the point where I have selected text, and I right click on my mouse, I do not get the context menu. So I tried to get the mouse event to force the display of the menu, but in this scenario, I am not getting the _MouseDown or _OnCellMouseDown events. Is this by design? Thanks. Tim

Administrator [Syncfusion]
Replied On November 20, 2003 04:35 PM UTC

This is by design. When an actively editing cell gets clicked, it is not the grid that get the click, but is the active cell control that gets the click. Here is a sample that I think will catch both cases, the grid getting the click and the cell control getting the click. It uses the grid_MouseUp event to handle all right clicks that the grid catches (which include the checkbox case), and dynamically hooks the cellcontrol_MouseUp in CurrentCellControlGotFocus and unhooks it in CurrentCellControlLostFocus to catch the active cell control's clicks.


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