Easiest way to sort a list of items

  • Thread starter Thread starter GarbageSauce
  • Start date Start date
G

GarbageSauce

Guest
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.

Continue reading...
 
Back
Top