MouseMove Listview

1 posts, 0 answers
  1. Cesar
    Cesar avatar
    6 posts
    Member since:
    Apr 2014

    Posted 27 May 2014 Link to this post

    When I use the mouse on the [MouseMove] event, I can retrieve a value if I am in Columns, details, and scroll? 

    I have a problem with ListView DoDragDrop not allow me to slide the scrool or columns.

    Code:

    private void lvwDetalle_MouseMove(object sender, MouseEventArgs e)
        {

          if (this.mouseDown && !this.dragged) {

            Point pt = this.lvwDetalle.PointToClient(Control.MousePosition);







            this.dragged = true;
            List<ListViewDataItem> selectedItems =
              this.lvwDetalle.SelectedItems.ToList<ListViewDataItem>();
            if (selectedItems.Count > 0) {
              //DragDropEffects.
                

              this.lvwDetalle.DoDragDrop(selectedItems, DragDropEffects.Move);
            }

            
          }      
        }
Back to Top