This project is read-only.

Autofilter filter event

May 2, 2014 at 10:13 PM
Edited May 2, 2014 at 10:17 PM
Hi, I'm working on an app that has two dataGrids, one with info from user A and the other from user B, they have the same field structure, what i want to do is to filter and re-sort the dataGrids when any of the Columns is filtered or sorted.

The desired result would be the result you would get by using the same ItemsSource on both grids, but using two different ItemsSources. By the way, I'm using ObservableCollection as ItemsSources.

Is there any way to do this?
May 5, 2014 at 4:07 PM
Nevermind, soled it.
If someone also needs to know, here is what i did.
Using the grid.Items.CurrentChanging Event and inside the event getting and setting the Items.Filter like this:

grid2.Items.Filter = grid.Items.Filter;
Marked as answer by jace075 on 5/5/2014 at 8:07 AM