
Sorting a ListView by column?
Ho,
If you want, you can implement the IComparer interface that implements
the Compare method for comparing your two items in the listview. Once you
have this, set the ListViewItemSorter property on the listview to an
instance of this, and it will sort your columns according to the criteria
you have set in the Compare method.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
Quote:
> How to sort a listview in details by it's column?
> I had added the ListViewItem & SubItem object. As well as
> subscribing to the column click event in my listview.
> I want to sort the columns whenever I click on them.
> Thanks!