Hi
In the non-csla samples I've looked at, using the SortDescriptions on a collection and setting the ItemsSource="{Binding ChildCollection}" in Xaml seemed to work pretty well. When I added a new item to the child collection, the new item shows up in the list box.
In csla, adding a SortDescription to the default collection view (as per wpf examples I've read), does not appear to work.
So I used the csla linq features:
listBox.ItemsSource = from c in parent.ChildCollection orderby c.Ordinal select c;
That gives me a sorted list. When I add a new item to the collection (parent.ChildCollection.AddNew()), it does not appear in the list box. I thought the linq equipment in csla returned a "hot list" that was tied to the underlying collection.
So, I suppose I have two questions:
1. Does the wpf CollectionView and SortDescriptions stuff work on csla collections?
2. If I cannot use the CollectionView/SortDescriptions stuff, and I instead use linq on clsa, do I need to un-and-re-bind to linq query result? Perhaps I am using the wrong linq expression?
Thank you