The requested page is not available for the requested platform. You are viewing the content for Default platform.

Grouping in Code


To group data by the values of the specified column at runtime, do one of the following:

  • Specify the column's GridColumnBase.GroupIndex property. This property specifies whether or not the column takes part in grouping, and at which level it takes part in grouping.

    grid.Columns["UnitPrice"].GroupIndex = 0;
  • Use the GridControl.GroupBy method.



To ungroup data by the values of a single column, do one of the following:

To ungroup the grid, use the GridControl.ClearGrouping method.