Hi eveybody,
I'm currently evaluating Infragistics and have problems to find a solution for the following usecase.
Given a "search" view with a subset of columns, lets call them A, C, E, and N rows in my XamDataGrid, now the user filters these N rows to get a subset of X rows and clicks on a "modify" button which navigates to a second view. In this second view I have a tab control where each tab item contains a XamDataGrid with a subset of columns that are grouped logically, for example the first tab item contains A,B and the second one C, D, E. All XamDataGird's inside the tab items have these X rows and can do additional filtering and some other stuff that's not relevant for this question.
Currently I'm copying these X rows into any view model the tab items are bound to when the user clicks on the "modify" button, but for performance reasons I want a different behavior. My idea was that I use a CollectionView for the "Seach" XamDataGrid and create another view as source for the XamDataGrids in the tab control based on the search view to avoid copying of rows.
What currently is working is that the rows in the other XamDataGrid's are "removed" when I filter in the search XamDataGrid, but as soon as I enter a filter into one of the other XamDataGrid's nothing is happening and I get the following error message inside the debug output:
DataSource reset notification received recursively. DataSource should not send a change notifcation during a reset, DataSource: System.Windows.Data.ListCollectionView
So basically my question is, how can I use a shared datasource where all filters from any grid are applied with a logical AND combinator, even if they are applied to the same field.
Thanks in advance,
Marc
Hi Joe,
thanks a lot, FilteredInDataItems was exactly what I'm looking for.
Hi Marc,
There are a couple of approaches that might help:
Joe