Delphi 7 TListView
Posted on 2006-07-18
I had a nearly similar post previously on this site.
I was looking for a elegant way to order a listviews items according to the column that has been clicked.
It should order Integers, Float, String etc...
So I got a very nice ListViewSort unit which automates this entirely.
The implemention looks like this:
TListViewSort.CreateOwned(lsvDownloads, [stDate, stString, stString, stInteger, stInteger]);
And its working perfectly but I need to enhance this more.
1. I need to show which column is sorted and also if ascending / descending by placing an arrow in the column header.
2. Also I need the form to remember which column was sorted last and whether ascending / descending if possible.
I would absolutely love to keep the current implementation because the ListSortView unit I got from some other expert is really making my life easy!!!
PLease help with example code and references etc..
Thanks in advance!