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
65
How to get the row/cell from the mouse point.
posted

I uses the Toolbar Manager as a context menu of my Grid. I want the context menu be shown only when I right-click the data row. And I want active the row even right-click it. Now my question is how to retrieve a row or cell via mouse point?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

        The code here is good.

        There are also about half a dozen or so KB articles in the Infragistics KnowledgeBase about this. Do a seach for "ElementFromPoint" and you will find them.

        You can also skip the ElementFromPoint call and just use grid.DisplayLayout.UIElement.LastElementEntered as the element you call GetContext on.

Children
No Data