Paul.Lewis wrote:
Jeff,
I cut this from the LLBLGenPro.chm:
How do I enable sorting functionality of an entity collection in a bound grid?The Adapter's EntityCollection class and the SelfServicing entity collection classes implement the IBindingList.SupportsSorting property and the IBindingList sorting functionality. Setting this property to true/True before the collection is bound to a grid, will make sure that the grid will be able to sort the contents of the collection when the user clicks a column header. Some grid controls offer sorting capabilities without this property, however grids based on .NET's own grid control require this property set to true to enable sorting capabilities.
Hi Paul, but don't I need to sort the collection with a command like:
[EntityCollectionName].Sort(FieldName....)?
The problem with this is that I can only sort based on the base item. So if I have a collection of orders, I can sort on any field in the order's collection. However, if I want to sort on an item RELATED to an order, like the customer, how would I do that?
Thanks