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

Easiest way to sort a list of items

$
0
0

So I have a list of items from a custom class. This class contains a string and an int. 

By any means necessary, I want both data members of the class list to be displayed in two separate columns. Most importantly, I want these columns to support sorting preferably by clicking the column header. But if the user clicks said column header, I do not want the list of items to be rearranged in any way. I just want the items in the control to be sorted. What would be the easiest way to do this?


In Calculus, 1+1=0.



Viewing all articles
Browse latest Browse all 2535

Trending Articles



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