GroupSummarySortInfoCollection.Add(GroupSummarySortInfo) Method
Appends a GroupSummarySortInfo object to the collection.
Namespace: DevExpress.XtraGrid.Columns
Assembly: DevExpress.XtraGrid.v24.1.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
info | GroupSummarySortInfo | A GroupSummarySortInfo object to add to the collection. If null (Nothing in Visual Basic) an exception is raised. |
Returns
Type | Description |
---|---|
GroupSummarySortInfo | The GroupSummarySortInfo object which was added to the collection. null (Nothing in Visual Basic) if it couldn’t be added to the collection. |
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