wpf-devexpress-dot-xpf-dot-grid-dot-summaryitemcollectionbase-1-dot-addrange-x28-system-dot-collections-dot-generic-dot-ienumerable-0-x29.md
Adds a range of summary items to the collection.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public void AddRange(
IEnumerable<T> summaries
)
Public Sub AddRange(
summaries As IEnumerable(Of T)
)
| Name | Type | Description |
|---|---|---|
| summaries | IEnumerable<T> |
A range of summary items (GridSummaryItem / TreeListSummaryItem).
|
The following code sample adds summary items to the GridControl.TotalSummary collection:
grid.TotalSummary.AddRange(new List<GridSummaryItem>() {
new GridSummaryItem() {
SummaryType = SummaryItemType.Count,
FieldName = "OrderID"
},
new GridSummaryItem() {
SummaryType = SummaryItemType.Max,
FieldName = "ModelPrice"
}
});
The collection contains the Add and AddRange methods to add summary items:
See Also
SummaryItemCollectionBase<T> Class