Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
610
ClickCell event with mouse button?
posted

In my ultragrid, right-clicking on any cell brings up a right-click menu of actions pertinent to that row. We show the menu in the MouseUp event after checking if MouseEventArgs.Button = MouseButton.Right. Unfortunately there's no easy way to get what the user clicked on in the grid.

But there's a ClickCell event that does tell me what an user clicked on. I don't have to do any work to figure out what the user clicked on. It just tells me (with .Cell property). I like this much better than the Mouse* group of events.

Unfortunately there's no way to know if they right-clicked. Is there some other event that I could use, or am I stuck using MouseUp? What's the easiest/clearest way to do this?

Parents Reply Children