[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Collapse]Windows 10 App Controls
  Prerequisites
 [Expand]Getting Started
 [Expand]Controls
 [Expand]Themes and Color Schemes
  Localization
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Core
  [Expand]DevExpress.Data
  [Expand]DevExpress.Data.Filtering
  [Expand]DevExpress.Mvvm
  [Expand]DevExpress.Mvvm.UI
  [Expand]DevExpress.UI.Xaml
  [Expand]DevExpress.UI.Xaml.Charts
  [Expand]DevExpress.UI.Xaml.Controls
  [Expand]DevExpress.UI.Xaml.Controls.Internal.Pdf
  [Expand]DevExpress.UI.Xaml.Editors
  [Expand]DevExpress.UI.Xaml.Editors.Native
  [Expand]DevExpress.UI.Xaml.Gauges
  [Collapse]DevExpress.UI.Xaml.Grid
   [Expand]AddingNewEventArgs Class
    AutoFilterCondition Enumeration
   [Expand]ColumnBase Class
   [Expand]ColumnCollection Class
    ColumnFilterMode Enumeration
   [Expand]CustomColumnSortEventArgs Class
    CustomColumnSortEventHandler Delegate
   [Expand]DataControlBase Class
    ExceptionMode Enumeration
    FilterPopupMode Enumeration
    FindMode Enumeration
   [Expand]GridCell Class
   [Expand]GridCheckBoxColumn Class
   [Expand]GridColumnBase Class
   [Expand]GridColumnCollection Class
   [Expand]GridColumnCommands Class
   [Expand]GridColumnDataEventArgs Class
    GridColumnDataEventHandler Delegate
   [Expand]GridComboBoxColumn Class
   [Collapse]GridControl Class
     GridControl Members
     GridControl Constructor
    [Expand]GridControl Properties
    [Expand]GridControl Events
    [Collapse]GridControl Methods
      AddNewRow Method
      ClearGrouping Method
      CollapseAllGroups Method
     [Expand]CollapseGroupRow Method
      ExpandAllGroups Method
     [Expand]ExpandGroupRow Method
     [Expand]GetCellValue Method
     [Expand]GetCellValueByListIndex Method
      GetChildRowCount Method
      GetChildRowHandle Method
     [Expand]GetGroupRowValue Method
      GetListIndexByRowHandle Method
      GetParentRowHandle Method
      GetRow Method
      GetRowByListIndex Method
      GetRowHandleByListIndex Method
      GetRowHandleByVisibleIndex Method
      GetRowVisibleIndexByHandle Method
      GetSelectedItem Method
     [Expand]GetSelectedItemCellValue Method
     [Collapse]GroupBy Method
       GroupBy(String) Method
       GroupBy(GridColumnBase) Method
       GroupBy(GridColumnBase, Int32) Method
       GroupBy(GridColumnBase, ColumnSortOrder) Method
       GroupBy(GridColumnBase, ColumnSortOrder, Int32) Method
      IsGroupRowExpanded Method
      IsRowVisible Method
      IsValidRowHandle Method
      MoveNextPage Method
      MoveNextRow Method
      MovePrevPage Method
      MovePrevRow Method
     [Expand]ScrollIntoView Method
     [Expand]SetSelectedItemUnboundColumnValue Method
     [Expand]SetUnboundColumnValue Method
     [Expand]SortBy Method
     [Expand]UngroupBy Method
   [Expand]GridControlBase Class
   [Expand]GridControlCommands Class
    GridControlNavigationStyle Enumeration
   [Expand]GridDateColumn Class
   [Expand]GridMaskColumn Class
   [Expand]GridSpinEditColumn Class
    GridSummaryItemAlignment Enumeration
   [Expand]GridTemplateColumn Class
   [Expand]GridTextColumn Class
   [Expand]GridTextColumnBase Class
   [Expand]GridTotalSummaryData Class
    GroupSummaryDisplayMode Enumeration
   [Expand]HighlightingSettings Class
   [Expand]InitNewRowEventArgs Class
   [Expand]InvalidRowExceptionEventArgs Class
    MultiSelectMode Enumeration
    NewItemRowPosition Enumeration
   [Expand]RowEventArgs Class
    RowEventHandler Delegate
    ScrollAnimationMode Enumeration
    ShowFilterPanelMode Enumeration
    ShowSearchPanelMode Enumeration
   [Expand]SummaryItemBase Class
  [Expand]DevExpress.UI.Xaml.Grid.Native
  [Expand]DevExpress.UI.Xaml.Layout
  [Expand]DevExpress.UI.Xaml.Layout.Base
  [Expand]DevExpress.UI.Xaml.Layout.Internal
  [Expand]DevExpress.UI.Xaml.Layout.VisualElements
  [Expand]DevExpress.UI.Xaml.Map
  [Expand]DevExpress.UI.Xaml.Ribbon
  [Expand]DevExpress.Utils
  [Expand]DevExpress.XtraGrid
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

GridControl.GroupBy Method

Groups data by the values of the specified column.

Expanded Overload list

  Name Description
Public method void GroupBy(string fieldName) Groups data by the values of the specified column.
Public method void GroupBy(GridColumnBase column) Groups data by the values of the specified column.
Public method void GroupBy(GridColumnBase column, int groupedIndex) Groups data by the values of the specified column. If several columns are involved in grouping, the specified column will reside at the specified grouping level.
Public method void GroupBy(GridColumnBase column, ColumnSortOrder sortedOrder) Groups data by the values of the specified column with the specified sort order.
Public method void GroupBy(GridColumnBase column, ColumnSortOrder sortedOrder, int groupedIndex) Groups data by the values of the specified column with the specified sort order. If several columns are involved in grouping, the specified column will reside at the specified grouping level.

Expanded See Also

Is this topic helpful?​​​​​​​