GroupLevelStyleEventArgs.Level Property

Gets the nesting level of group rows whose style is to be specified.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public int Level { get; }
Public ReadOnly Property Level As Integer

Property Value

Type Description
Int32

A zero-based integer value representing the row nesting level.

Remarks

When grouping by multiple columns is applied, group rows are arranged into a tree. Each group row's nesting level matches the corresponding grouping column's GridColumn.GroupIndex property value. So, the number of nesting levels is equal to the number of grouping columns.

The image below illustrates group row levels.

GroupLevelStyle - Level

Read the Level property value to determine the nesting level of group rows whose style is to be customized. To modify style settings, use the GroupLevelStyleEventArgs.LevelAppearance property.

As stated above, you can use the Level property to obtain the grouping column at the current nesting level. The Level property's value is the column's position within the ColumnView.GroupedColumns collection.

See Also