GridControl.GroupSummarySortInfo Property
Gets the information required to sort group rows by summary values.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v20.2.dll
NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core
Declaration
[Browsable(false)]
public GridGroupSummarySortInfoCollection GroupSummarySortInfo { get; }
Property Value
Type | Description |
---|---|
GridGroupSummarySortInfoCollection | The information required to sort group rows by summary values. |
Remarks
Sort Group Rows by Summary In Code
To sort group rows by summary values:
- Create a GridGroupSummarySortInfo object.
- Specify its settings (group summary item, grouping column’s field name and sort order).
- Add this object to the GroupSummarySortInfo collection.
private void SortGroupsBySummary(GridColumn column) {
GridGroupSummarySortInfo sortInfo = new GridGroupSummarySortInfo(grid.GroupSummary[0],
column.FieldName, System.ComponentModel.ListSortDirection.Ascending);
grid.GroupSummarySortInfo.Add(sortInfo);
}
To clear sorting, remove the GridGroupSummarySortInfo object from the GroupSummarySortInfo collection.
Sort Group Rows by Summary In UI
End users can press the Sort By Summary context menu’s button to sort group rows by summary values:
To clear sorting, end users should select the Clear Summary Sorting item from the grouping column’s header context menu.
Refer to the Sorting Group Rows by Summary Values and Sorting Group Rows by Summary topics for more information.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupSummarySortInfo property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.