Appends a GroupSummarySortInfo object to the collection.
public GroupSummarySortInfo Add( GroupSummarySortInfo info )
Public Function Add( info As GroupSummarySortInfo ) As GroupSummarySortInfo
A GroupSummarySortInfo object to add to the collection. If null (Nothing in Visual Basic) an exception is raised.
The GroupSummarySortInfo object which was added to the collection. null (Nothing in Visual Basic) if it couldn't be added to the collection.
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).