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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top