I have data in a XamDataGrid grouped by a particular column. I also have a row summary which shows the Count of all records in each group and also a Count of all records in the entire grid.
I can change the summary's display name using the StringFormat but what if I want the summary for the entire grid to have a different display name to the summaries in the group by records?
Hello,
Unfortunately, the functionality that you would like is not supported by the XamDataGrid. I have tried a few thigs, but they will not work:
1) If you loop through the GroupByRecord.ChildRecords collecition, you can get access to the StringFormat property for the childRecords.
gbr.ChildRecords.SummaryResults.SummaryDefinitions[0].StringFormat = "Total{0:c}".
However, changing this here will ultimately change the SummaryDefinition for the entire fieldLayout causing the grand total StringFormat to change also.
2) I was also looking into changing the format of the SummaryCellPresenter object via style and trigger, but there was no way to figure out if the SummaryCell was part of a GroupByRecordCollection or not.
Because this type of behavior is not supported, I have submitted a FeatureRequest for either having the SummaryDefinitions on a record collection basis or to have a property on the SummaryCellPresenter that will tell me if the summary is part of a group by collection so a trigger can be used to change the format.
If you would like, please submit your own request. The more requests, the better chance the feature will be implemented soon.
Thank you for using the Infragistics Formums and have a nice day.
Thank you very much for your response and efforts. I have submitted a feature request as you suggested.