Posted: Sun Jul 12, 2015 12:15 pm Post subject: Sorting in List view?
Hi, I have a data with 5 columns and many rows in a listview.
Is there any script that allows sorting of the data in listview after creating a trainer?
What the trainer does is extract all the 4000 player's data in the game (its a simulation game like football manager that is why so many players). And then displays all that data in a huge list.
But I want a script that will allow me to sort the data in a particular column. Like if click on the ability column header. All data should be arranged with descending order of ability. This wil show me the top 10 players with highest ability in a glance.
Joined: 09 May 2003 Posts: 25262 Location: The netherlands
Posted: Sun Jul 12, 2015 1:12 pm Post subject:
Yes, implement OnColumnClick and in there clear the list, sort it internally, and then rebuild the list
(I guess just setting the SortColumn, SortDirection and SortType properties on ColumnClick works too, but it's not as accurate as sorting yourself) _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum