Summary Row for a dynamically generated mappings

Hi ,
I have tried setting captions summaries using GridSummaryRow for a mapping as below :

GridSummaryRow summaryRow = new GridSummaryRow();
summaryRow.ShowSummaryInRow = false;
summaryRow.SummaryColumns.Add(new GridSummaryColumn()
{
Name = "PatientID",
MappingName = "PatientID",
Format = "{Sum:c}",
SummaryType = SummaryType.DoubleAggregate
});
dataGrid.CaptionSummaryRow = summaryRow;

But, How doI do the same for a mappingname that is dynamically generated?

1 Reply

SS Sivaraman Sivagurunathan Syncfusion Team February 1, 2018 03:40 AM UTC

  
Hi Joseph, 
 
Thanks for using Syncfusion support. 
 
We have checked your query. could you share more details about SfDataGrid Collection binding and please confirm whether you are using “Dictionary” or “ExpandoObject”. Also please share  your SfDataGrid ItemsSource binding property code example. It will be help us to proceed further. 
  
Regards, 
Sivaraman 


Loader.
Up arrow icon