I have an xamdatagrid and I want to show the total of field values for each column separately within summary row of xamdatagrid. Please advise how can I do so with working sample code would be helpful
Thanks
There is 1 more requirement that , I have nested xamdatagrid and I want to show just the grand total of full grid only at the bottom of the grid. How can I achieve this?
Hello Richa,
From your description in this thread, I am under the impression that you are looking to show the sum of a numeric Field's values within the summary row. If this is the case, this is a built-in behavior of the XamDataGrid, as when you set the XamDataGrid.FieldSettings.AllowSummaries property to "True," you can apply a built-in "Sum" summary to each numeric Field in your XamDataGrid. You can also do this manually by adding SummaryDefinition elements to a corresponding FieldLayout.SummaryDefinitions collection.
More information about XamDataGrid record summaries can be found here: https://es.infragistics.com/help/wpf/xamdatagrid-row-summaries.
I have attached a sample project to demonstrate the above.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer