By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,326 Members | 838 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,326 IT Pros & Developers. It's quick & easy.

How to Sort in ListView

P: n/a
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

Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
* =?Utf-8?B?VmVua2F0YXJhamFu?= <Ve**********@discussions.microsoft.com> scripsit:
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>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.