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
125
About UltraGrid RightMouseButton Click
posted

HI :

when i click UltraGrid by  LeftMouseButton the clickedrow will be active;

but click UltraGrid by  RightMouseButton cant set the clickedrow active;

what should i do to let RightMouseButton-set-the-clickedrow-active work?

Parents
  • 69832
    Suggested Answer
    Offline posted

    The grid does not activate/select rows on a right-click, so you would have to code it yourself. You can handle MouseDown, use UltraGrid.DisplayLayout.UIElement.ElementFromPoint to get the UIElement at the cursor position, then call GetContext off that element with a type of UltraGridRow; this will return the row at the cursor position if there is one. You can then use the row's Activated and Selected properties (they are settable) to activate/select the row.

Reply Children
No Data