ID column value and Group by value (ID is the group by column) are not matching.
Attached zip file has .xaml, .cs and error image files.
To reproduce:
1. Run the above code
2. Select "Sum" for ID column and Drag ID column into group by.
3. Scroll down to the end and scroll up to the beginning.
4. ID value and Grouby Value is not matching. (check the image file in attached zip for the issue)
In the code, I am trying to remove (item text), apply data format and adjusting the summary row to show group by and summaries in one row.
What could be the issue?.
Thanks in advance.
Hello,
I can say that Grouped and Sorted events are fired only when there is a UI interaction with the XamDataGrid. If you add items in the SortedFields collection they don’t fire, because since you do this in code you can control it and you can remove the “(items)” string after you add the FieldSortDescription.
Hope this helps you.
If we have Custom Sort Compare (Ex: http://community.infragistics.com/forums/t/67347.aspx), Grouped event is not firing on sort of same column. Because of this the group description is adding "item" text.
Looks like we need to implement the code to remove "item" text in Custor Sort Compare Method.
Is this the correct solution?
Great. It works fine now.
Thanks for your help.
Thank you for your post. I have been looking into and the code you have provided and I created a sample project for you where I modified your code, so now it ha the functionality you want. Basically I handled the XamDataGrid’s Grouped event and change the Description of the GroupByRecords there, instead of I nthe GroupByRecordPresenter’s Loaded event.