ListView Sorting

  • Thread starter Thread starter Vanessa
  • Start date Start date
V

Vanessa

Is there a way to sort a listview on the first column?
Alternatively, is there a simple way toe sort an ArrayList with two
dimensions?
 
I'm not sure how to have a two dimensional ArrayList, but you can
write a comparer (class implementing IComparer) to have the ArrayList
sort however you like with your custom objects.

HTH,
 
Rather than use ICompaerer I am transferring value[row,col]
to valueArray, rowArray and colArray and writing a
sort(valueArray,rowArray,colArray)
(sorting on valueArray, swapping the other two accordingly)
and will then bind the results to the listView.
 
Back
Top