Paul Chilton electronics, programming, server administration

16Apr/110

VB.NET Move ListViewItems Up and Down

Posted by Paul

ListView

I recently wrote an application where I needed to move items up and down (order them) in ListView in VB.NET and discovered that there isn't a built in method to do so. I decided to share my solution which is shown below. This method can be used to move one or multiple selected items up or down in the list. All tag information and formatting should 'follow' the items moved. This method is easily ported to C#.