Sorting, Filtering ability in BusinessListBaseSorting, Filtering ability in BusinessListBase
Old forum URL: forums.lhotka.net/forums/t/4113.aspx
haripriya_kumar posted on Thursday, January 03, 2008
I have created a collection which inherits from BusinessListBase, of course the collection contain items/objects which inherits from BusinessBase. I need to sort the collection depending on some of the properties in the BusinessBase item, Is there a thread in the form which explains on how to filter/sort a BusinessListBase collection.
Thanks,
Hari
ajj3085 replied on Thursday, January 03, 2008
Use the SortedBindingList and FilteredBindingList... both are part of csla.
haripriya_kumar replied on Thursday, January 03, 2008
How do use these.....SortedBindingList and FilteredBindingList, I see they are not part of the collection itself. Sorry if I sounded silly, I'm very new to using CSLA frameworkajj3085 replied on Thursday, January 03, 2008
They work like decorators; you create a sorted list by giving it your BLB instance, like so:
SortedBindingList<MyBo> sorted = new SortedBindingList<MyBo>( myBLB );
FilteredBindingList<MyBo> filtered = new FilteredBindingList<MyBo>( sorted );
Copyright (c) Marimer LLC