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
45
How to right click select an item in UltraWinListView
posted

 I want to right click a row in UltraWinListView and have that item selected so I can display a dynamic context menu

How would I go about that,

I hooked to the MouseUp event so I got the X,Y bu I am not able to get the clicked on row using the UIElement.Hit test or any other

Appriciate any help 

Thanks 

Parents
No Data
Reply
  • 45
    Verified Answer
    Offline posted

     I just found it, it do not know how I missed it

     UltraListViewSubItem cell = taskLV.SubItemFromPoint(e.X,e.Y);
     if(cell != null)
     {
              taskLV.SelectedItems.Clear();
               taskLV.SelectedItems.Add(cell.Item);
      }

     

    This will select the item


Children
No Data