How can we do

Namaste Everybody,

 

    I am working with ListView Controller. I want to know two things.

 

   1. Can we override the sort() method of ListView Controller, if so can anybody give the code.

   2. How the internal process of sort() method of ListView Controller works please expalin me using suitable pictures.

Advanced Thanks to all who helped me to understand the above listed things.

Regards,

Shaji Kumar.V.K




Answer this question

How can we do

  • Scott Coffey

    You cannot override the Sort method of the ListView control. Only methods marked as abstract or virtual can be overriden in derived classes. Internally the Sort method uses an IComparer to compare items for sorting. Instead of overriding the sorting implementation just create an IComparer and set the ListViewItemSorter property of the ListView control.


  • How can we do