I'm using Infragistics WPF xamDataGrid control release 9.2.
I've write my own class with IComparer interface.
I used this class to sort any columns. Here is my code to do that.
MyClassCompare m_CompDI = new Solution.MyClassCompare(); mDataGrid.FieldSettings.SortComparer = (IComparer)m_CompDI; It's work fine. When I click field header, the column is sorted perfectly, using my own sort algorithm. it's ok.
But, if I try to filter with operator "greater than" (for example), my class MyClassCompare is not used. It use the standard comparer class.
Hope to read you soon.
Sincerely
Dominique
Hi Dominique,
It seems like we need to add a property to FieldSettings to allow you to specify a comparer for us to use during filtering operations. You can do what you want thru code now by creating your own ICondition implementation but I am assuming you are using our filter cell ui in the xamDataGrid and there is no easy way to supply your comparer now when the user enters a value in the filter cell and selects an operator from the dropdown.
I'll submit this as a bug.