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
400
How to display a context menu in an ultra grid
posted

 Hi,

How to display a context menu in an ultra grid if and only if the user clicks on a particular row. And the row or cell should not be header or blank cell/row.

Regards,

SreeRam

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi SreeRam,

    You can't apply a context menu to a part of a control. What you would have to do is apply the context menu to the entire control depending on the location of the mouse. I would use the MouseEnterElement and MouseLeaveElement events of the grid to assign and remove the context menu. You can use the GetContext method on the UIElement being entered to get the row (or null) and either set or remove the context menu on the grid control. 

Children