Home › Forums › WPF controls › Xceed DataGrid for WPF › Approprite Event for Filter after Items.Refresh ?
I am trying to outsource the DataGridCollectionView to a Resource Dictionary.
The Filter=”MyFilter” cannot be added as its in a Resource Dictionary.
I thought about an Event after a DataGridControl Items Refresh but possible the best way is to add the Filter to the DGVC ?? or if an event — which one ??
Anyone confirm this is the way to go (and small example please!)…
Imported from legacy forums. Posted by Desmond (had 760 views)
1- Provide an x:Class to the resource dictionary
2- Create a code-behind file that is a partial class with the same name as your resource dictionary and that derives from ResourceDictionary.
3- Place your Filter event in this partial class.
Imported from legacy forums. Posted by Jenny [Xceed] (had 2635 views)