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.

Cannot get mouse event on active cell

Thread ID:

Created:

Updated:

Platform:

Replies:

8794 Nov 20,2003 05:41 AM Nov 20,2003 11:35 AM Windows Forms 1
loading
Tags: GridControl
Tim Jackson
Asked On November 20, 2003 05:41 AM

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 11:35 AM

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.

CONFIRMATION

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.

;