GridSortInfo.IsGrouped Property

Gets whether the column which is referred to by the current GridSortInfo object is a grouping column. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.Core.dll

Declaration

public bool IsGrouped { get; }
Public ReadOnly Property IsGrouped As Boolean

Property Value

Type Description
Boolean

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

Remarks

GridSortInfo objects specify the elements in the GridControl.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.

Grouping settings are not stored directly by the GridSortInfo objects. These settings are obtained from the GridControl.SortInfo collection based on its GridSortInfoCollection.GroupCount property. If the current GridSortInfo object is positioned in the collection at an index less than the GridSortInfoCollection.GroupCount, then this column is used to group data and the IsGrouped property returns true. Otherwise, this is not a grouping column, and the IsGrouped property returns false.

See Also