dolphin King
asked on
firemonkey Android Listview Sort items
can i resort items in listview on Firemonkey ?
ASKER
but how i can retrieve the Tlistview data with this function ? should i define Leftitm,Rightitm = listview1.items ?
This is universal code ... Sort will trigger comparing (all items) and Comparer is algorithm only how Items should compare... Try it.
ASKER
but the compare will not be based on text it will be based on data that equals to numbers
How you store those numbers to Data part of Item?
ASKER
as example
listview item add
item.data['number'] := 10
listview item add
item.data['number'] := 10
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window