I was having a real hard time with this error – when I set grid group in in code by assigning IsGroupedBy property of a column to “true” – every other grid.databind() was throwing error “Failed to compare two elements in the array.” Event though I cleared (or so I thought) Bands collection, Rows collection and Columns collections with their respective .Clear() methods.
Using .Reset*() methods instead. Apparently .Clear() methods still leave some residual information within the grid, which causes the above mentioned error if you try to set grid grouping again. but
did the trick. Happy databinding!
- Update 5/13/2009: After upgrading to Infragistics 9.1 this solution no longer works. Still waiting for reply from techsupport
- Update 8/6/2009: Service Release 2067 fixes this problem in Infragistics 9.1