I have a FilterRow in my datagrid. I also have a button on my page to clear the filters.
The button simply executes DataGridCommands.ClearFilter with a target of my datagrid. So, it should clear all filters.
The filters seem to be cleared, i.e. the grid shows more data rows. But, the FilterRow still shows the filter expression for each column that had an expression before executing ClearFilter. If I click the ClearFilter Button in a giving FilterRow cell, the expression is cleared.
A similar problem occurs if I set the FilterCriterion on a DataGridCollectionViewSource ItemProperty at runtime. The proper filter seems to be in effect, but the FilterRow does not have the proper expression.
How can I get the FilterRow cells in sync with the actual filter state?
Here is how I defined my FilterRow, nothing special.
<xcdg:FilterRow Background="Pink" />
Here is how I am executing ClearFilter, where _projectsGrid is my DataGridControl
private void ResetGrid()