I don’t find the problem (using your code and scenario) regarding GridDesktop’s MouseUp event using the attached latest version. The event fires when the mouse button is clicked/released on a cell and you don’t need to click on other cell to fire it.
Please try the attached version, if you still find the issue, kindly do create a sample application, zip it and post it here to show the issue. We will check it soon.
In the attached example, run the application. Make sure that the first thing you do is to right-click in a cell versus clicking in a cell and then right-clicking in that newly selected cell.
There should be a break on the Console.Writeline. After right-clicking, when I run it, it doesn't hit the break point until after I click to a different cell.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for the sample application.
Your issue has been registered in our internal issue tracking system with issue id: CELLSNET-15792. We will further investigate your issue and get back to you soon.
By the way, GridDesktop provides a property named “ShowContextMenu”. If it is set to false, the ContextMenu will be never shown when you right click on any cell. Should this fulfill your need.
We provide a property named “ContextMenu” of
ContextMenuManager in Aspose.Cells.GridDesktop v2.1.0.2002(attached).
To handle the popup event of ContextMenu is more efficient way than using mouseup event.
Please try the following code: