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
110
Show context menu on a specific field
posted

I want to show a ContextMenu when a cell of a specific field is right clicked. How to do that?

I find right click can not change the selected cell of the XamlDataGrid. Then how to decide which cell is right clicked?

Thx.

  • 8576
    Offline posted
    Hi -
     
    You should be able to create a Style for a CellValuePresenter that contains a Setter for its ContextMenu property.  You would then set the FieldSettings.CellValuePresenterStyle property to the Style you created on the desired Field (via its Field.Settings property)
     
    Joe Modica