Skip to main content

GridViewColumnState.GroupIndex Property

Gets or sets a value that specifies whether the column takes part in grouping and at which level.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int GroupIndex { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the column’s position among grouping columns. -1 if the GridView isn’t grouped by the values of the current column.

Remarks

The GridView supports data grouping by an unlimited number of data columns. When grid data is grouped by the values of a given column, the column’s GroupIndex property is set to a non-negative integer. If several columns are involved in grouping, the GroupIndex property specifies the grouping level. If set to 0, the column is at the root grouping level.

See Also