3

I have list<Person> Persons

Person has ID, something like that:12231d4sa32fd

I have a converter that convert the ID to Status: (Ready/Waiting/NotHere).

I show the list in a ListView.

Question: How can I sort the ListView by the Person's status ?

H.B.
  • 166,899
  • 29
  • 327
  • 400
Erez
  • 6,405
  • 14
  • 70
  • 124

1 Answers1

0

One option is to add a Status property to your Person type and bind to that in your grid instead. If you don't wish to add a Status property to your model, then you could create a PersonViewModel instead with this additional property, and bind your grid to a collection of PersonViewModel.

devdigital
  • 34,151
  • 9
  • 98
  • 120