
How to sort listview items
You have to create a class that implements IComparer and set the
ListItemSorter property of the ListView. I have a little (unfinished)
sample If you are interested.
Roberto
Quote:
> Could someone give me a few hints on sorting listview items? So far I
found:
> listview1.Sorting = WinForms.SortOrder.Ascending
> But that only works with the first column. How could I sort by another
> column? And how could I add the sort direction arrows present in common
> programs like OE?
> Also, how would I sort items using non-text criteria (like numbers,
dates)?
> TIA,
> Best Regards,
> Miguel Santos