ListView Drag/Drop reordering - doesn't work when dragging left?

I modified your code a little bit and it works now. (Just the _DragDrop part). There seems to be a bug and it can be fixed by changing the alignment during Drag & Drop.

I modified your code a little bit and it works now. (Just the _DragDrop part). There seems to be a bug and it can be fixed by changing the alignment during Drag & Drop.

ListView1. Alignment = ListViewAlignment. Default; if (listView1.SelectedItems.

Count == 0) return; Point p = listView1. PointToClient(new Point(e. X, e.

Y)); ListViewItem MovetoNewPosition = listView1. GetItemAt(p. X, p.

Y); if (MovetoNewPosition == null) return; ListViewItem DropToNewPosition = (e.Data. GetData(typeof(ListView. SelectedListViewItemCollection)) as ListView.

SelectedListViewItemCollection)0; ListViewItem CloneToNew = (ListViewItem)DropToNewPosition.Clone(); int index = MovetoNewPosition. Index; listView1.Items. Remove(DropToNewPosition); listView1.Items.

Insert(index, CloneToNew); listView1. Alignment = ListViewAlignment.SnapToGrid.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions