Skip to main content

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.1.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