G
Guest
i have an arraylist that gets it's values dynamiclly from the database, after
paging, searching & more in the ASP.net file.
What im trying to do, is sort the results that are sorted in the ArrayList,
each time by another field.
The ArrayList contains a list of a class which i built, that fits these
results.
I was told to use a IComparer with the sort method, after i try'ed just
ArrayList1.Sort i got the following error:
System.ArgumentException: At least one object must implement IComparable
try'ed giving the Sort method an IComparable parameter, it still gives me
the same error.
How can i sort my ArrayList without building a full interface for it? (or is
it the only way?)
thanks in advance.
paging, searching & more in the ASP.net file.
What im trying to do, is sort the results that are sorted in the ArrayList,
each time by another field.
The ArrayList contains a list of a class which i built, that fits these
results.
I was told to use a IComparer with the sort method, after i try'ed just
ArrayList1.Sort i got the following error:
System.ArgumentException: At least one object must implement IComparable
try'ed giving the Sort method an IComparable parameter, it still gives me
the same error.
How can i sort my ArrayList without building a full interface for it? (or is
it the only way?)
thanks in advance.