Hello,
I noticed when trying to sort a XamGrid that has 16 or more items of the same value in the column to be sorted, a IComparer.Compare() exception is generated:
System.ArgumentException was unhandledMessage: An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dllAdditional information: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'Infragistics.MultiSortComparer`1[XamGridSortingIssue.GridData]'.
I have an example project, but i can only add files less than 1024KB and the infragistics reference dlls are larger than that. My project is simply creating a XamGrid, simple class with 1 DateTime member, and then adding 17 instances of the same exact datetime to the binding list that is the itemsource of the xamgrid. Once built and the form is shown, I create the error by clicking on the column header.
How can I get around and/or fix this issue?
Thanks
Hello Gary,
Thank you for contacting Infragistics. An ArgumentException regarding the ICompare.Compare() method aftersorting was recently fixed, and currently awaiting release. The behavior can be seen in the sample below. Let me know if the issue differs in anyway. In addition, I linked this case to development item 247673 and created a private support ticket (CAS-197814-B0D5Q8) so you are notified when the fix has been released.
WpfApplication1version2017 (1).zip
I am following up to inform you that I am now closing the case since the development issue has been closed and the most recent service release with a fix has been made available last year.
If you have any additional questions you may submit a new ticket. Thanks and have a great day!