Csla analog for ObservableCollection with possibility for filtering.

Csla analog for ObservableCollection with possibility for filtering.

Old forum URL: forums.lhotka.net/forums/t/11631.aspx


neo_u posted on Sunday, October 07, 2012

Hello.

I'm trying to create BO with possibility to filter via DataGrid from WPF.

But, when I'm trying to do that if I'm using BindableBusinessList CollectionViewSource.GetDefaultView() returns me a ICollectionView where I can't do neither sorting nor filtering.

When I'm using SortedBindingList - I can sort, however I can't filter.

And the latest what I found is FilteredBindingLIst, I hoped that it will gave me possibility for filtering, still no success.

Maybe there is some special class for what ICollectionView will be sortable and filterable, or at least filterable.

 

Thanks in advance for the answers

JonnyBee replied on Sunday, October 07, 2012

Hi

Use Linq queries on you business list with the ToSyncList() extension to return a LinqObservableCollection of the result.

If you do a search fro ToSyncList on the forum you will find several posts related to this.

Copyright (c) Marimer LLC