If i disabled the OnAppear, the summary row is there.
Can you please show me the correct method to reset and reload the data to datagrid, so the summary row won't be disappear?
Thank you in advance.
This is the code for grouping & summary:
_dataGrid.GroupColumnDescriptions.Add(new GroupColumnDescription()
{
ColumnName = "EventID"
});
GridSummaryColumn summaryColumn = new GridSummaryColumn();
summaryColumn.Name = "CaptionSummary";
summaryColumn.MappingName = "Money";
summaryColumn.Format = "{Sum:c}";
summaryColumn.SummaryType = Syncfusion.Data.SummaryType.DoubleAggregate;
GridSummaryRow summaryRow = new GridSummaryRow();
summaryRow.Title = "Total: {CaptionSummary}";
summaryRow.ShowSummaryInRow = true;
summaryRow.SummaryColumns.Add(summaryColumn);
_dataGrid.CaptionSummaryRow = summaryRow;
This is my reset binding method(though i don't know if this is the right code for it ):
void Handle_Appearing(object sender, System.EventArgs e)
{
model = new RepActivitiesRepository(_eventId);
_dataGrid.ItemsSource = model.Activities;
}