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

GridColumnSortInfo.IsGrouped Property

Indicates whether the column which is referred to by the current GridColumnSortInfo object is a grouping column.

Namespace: DevExpress.XtraGrid.Columns

Assembly: DevExpress.XtraGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

#Declaration

public bool IsGrouped { get; }

#Property Value

Type Description
Boolean

true if the GridColumnSortInfo.Column is used to group data; otherwise, false.

#Remarks

GridColumnSortInfo objects represent the elements in the ColumnView.SortInfo collection. This collection stores the columns to which sorting or grouping is applied within a View. By adding elements to this collection you can apply sorting and grouping to a column.

Note that grouping settings are not stored directly by the GridColumnSortInfo objects. These settings are obtained from the ColumnView.SortInfo collection based on its GridColumnSortInfoCollection.GroupCount property. If the current GridColumnSortInfo object is positioned in the collection at an index less than the GroupCount then this column is used to group data and the IsGrouped property returns true. Otherwise, this isn’t a grouping column and IsGrouped returns false.

See Also