Me.dataGrid.GroupSummaryRows.Add(New GridSummaryRow() With {
.ShowSummaryInRow = False, _
.SummaryColumns = New ObservableCollection(Of ISummaryColumn)() From {
New GridSummaryColumn() With {
.Name = "Age",
.MappingName = "EmployeeAge",
.SummaryType = SummaryType.Int32Aggregate,
.Format = "Count - {Count:d}"
},
New GridSummaryColumn() With {
.Name = "Salary",
.MappingName = "EmployeeSalary",
.SummaryType = SummaryType.CountAggregate,
.Format = "Amount - {Sum:c}"
}
}
}) |