How to Sort in ListView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hai Friends,
I'm using ListView to load and show the data. When use the Sorting Property, the grid is sorted based on the First Column. It is omitting all others.It's giving both Ascending and Descending
If I want to sort based on the Second or any other columns, I'm using the ListViewItemComparer class. But the sorting is done only by Ascending. I need to sort it by Descding too. Please help me friends, to sort both IN Ascending and Descding Order based on the Columns clicked in the ListView.

Thanks
 
* =?Utf-8?B?VmVua2F0YXJhamFu?= said:
If I want to sort based on the Second or any other columns, I'm
using the ListViewItemComparer class. But the sorting is done only by
Ascending. I need to sort it by Descding too. Please help me friends, to
sort both IN Ascending and Descding Order based on the Columns clicked
in the ListView.

You will find some samples here (C#):

<URL:http://www.codeproject.com/cs/miscctrl/#ListView+controls>
 
Back
Top