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

Cannot get mouse event on active cell

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

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Live Chat Icon For mobile
Up arrow icon