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
945
Determine the row when contextmenu item selected
posted

Would like to determine which row the mouse was over when the contextmenu was opened and event fired.

have tried to use the ActiveRecord property, but this is set to null until a row has been selected.

Thanks

  • 22015
    Verified Answer
    posted

    Hello David,

    Thank you for your post. I have been researching your issue. You can create a ContextMenu in the Resources of XamDataGrid and then to set a Click event. If you add the  ContextMenu directly to the XamDataGrid you can  set one of the events: ContextMenuOpening or PreviewMouseRightButtonDown. I have created and attached a sample for you. Please find the attached sample and do not hesitate to contact us if you have any further questions.

    XamDataGridMouseOverPosition.zip