Hi,
I am working on the project where i show a list of Log Records.
my list is as follows.
Original list
Id Time Event Details
1 1 Error1 xyz
2 1 Error3 xyz
3 1 Error2 xyz
4 1 Error1 xyz
5 1 Error2 xyz
I first create the custom object of (Id,Time,Event, Details) and value (1, 1, Error1, xyz).
I call it TableRowElement s.
like this i create List<TableRowEl ements>.
Now I want to sort the record according to Event but while doing that i also need to see that Event are in order
for example
Final List should be
Id Time Event Details
1 1 Error1 xyz
4 1 Error1 xyz
3 1 Error2 xyz
5 1 Error2 xyz
2 1 Error3 xyz
I am using Icompare for this .
I am getting the values sorted but only on 1 field 'Event'. After sorting the list does not keep its order.
I am not sure how to sort this list on 2 criterias. I am working on WinCE 6.0.
Thanks,
Sachin
I am working on the project where i show a list of Log Records.
my list is as follows.
Original list
Id Time Event Details
1 1 Error1 xyz
2 1 Error3 xyz
3 1 Error2 xyz
4 1 Error1 xyz
5 1 Error2 xyz
I first create the custom object of (Id,Time,Event, Details) and value (1, 1, Error1, xyz).
I call it TableRowElement s.
like this i create List<TableRowEl ements>.
Now I want to sort the record according to Event but while doing that i also need to see that Event are in order
for example
Final List should be
Id Time Event Details
1 1 Error1 xyz
4 1 Error1 xyz
3 1 Error2 xyz
5 1 Error2 xyz
2 1 Error3 xyz
I am using Icompare for this .
I am getting the values sorted but only on 1 field 'Event'. After sorting the list does not keep its order.
I am not sure how to sort this list on 2 criterias. I am working on WinCE 6.0.
Thanks,
Sachin
Comment