So I have an ArrayList that gets populated with objects like:
myAL.Add(new CustomObject(pa rm1,parm2));
I'm consuming this ArrayList from an ObjectDataSourc e and would like to have
this support sorting (because it's ultimately being consumed in a GridView).
I can't simply sort the ArrayList (because it only knows it's holding a
bunch of objects). So I need a way to sort the ArrayList, based on the
data - that is within the objects that it has loaded.
It seems like there must be some relatively simple way that I can make that
CustomObject() class sortable... any ideas??? TIA
myAL.Add(new CustomObject(pa rm1,parm2));
I'm consuming this ArrayList from an ObjectDataSourc e and would like to have
this support sorting (because it's ultimately being consumed in a GridView).
I can't simply sort the ArrayList (because it only knows it's holding a
bunch of objects). So I need a way to sort the ArrayList, based on the
data - that is within the objects that it has loaded.
It seems like there must be some relatively simple way that I can make that
CustomObject() class sortable... any ideas??? TIA
Comment