Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

GroupSummarySortInfoCollection.Add(GridSummaryItem, ColumnSortOrder) Method

Initializes a new instance of the GroupSummarySortInfo class with the specified sort order and appends it 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(
    GridSummaryItem summary,
    ColumnSortOrder sortOrder
)

#Parameters

Name Type Description
summary GridSummaryItem

A GridSummaryItem object representing a summary item used to calculate summary values for groups of rows. If null (Nothing in Visual Basic) an exception is raised.

sortOrder ColumnSortOrder

A ColumnSortOrder enumeration value specifying the sort order.

#Returns

Type Description
GroupSummarySortInfo

The GroupSummarySortInfo object added to the collection. null (Nothing in Visual Basic) if the View is not grouped.

See Also