GroupSummarySortInfoCollection.Add(GroupSummarySortInfo) Method
In This Article
Appends a GroupSummarySortInfo object to the collection.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
public GroupSummarySortInfo Add(
GroupSummarySortInfo info
)
#Parameters
Name | Type | Description |
---|---|---|
info | Group |
A Group |
#Returns
Type | Description |
---|---|
Group |
The Group |
#Remarks
A GroupSummarySortInfo object cannot be added to the collection in the following cases:
- the collection doesn’t belong to any View (its GroupSummarySortInfoCollection.View property’s value is null);
- the summary item used to calculate the summary values for groups of rows doesn’t exist (the GroupSummarySortInfo.SummaryItem property’s value is null);
- summary value calculation is disabled for the summary item (the summary item’s GridSummaryItem.SummaryType property is set to the SummaryItemType.None value).
See Also