Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Sort listview with multiple columns

$
0
0
I have a listview that I wanted to be able to sort columns when clicked either ascending or descending. I have all that code implemented and it works fine. The problem is that when I sort any column I always want it to sort first based on that column either ascending or descending and then to always sort column 1 ascending and then column 2 ascending. Something like in sql ORDER BY COLUMN3 DESC, COLUMN 1 ASC, COLUMN2 ASC. Is there a way to do this?

Debra has a question


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>