Back to Devexpress

ColumnView.StartGrouping Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnview-c580be1e.md

latest2.6 KB
Original Source

ColumnView.StartGrouping Event

Fires before a grouping operation is started.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Sorting")]
public event EventHandler StartGrouping
vb
<DXCategory("Sorting")>
Public Event StartGrouping As EventHandler

Event Data

The StartGrouping event's data class is EventArgs.

Remarks

When you group data by a specific column, the View does the following:

  1. raises the StartGrouping event;
  2. performs data grouping;
  3. raises the ColumnView.EndGrouping event.

Note that data grouping requires sorting to be performed. Thus, the ColumnView.StartSorting and ColumnView.EndSorting events are also raised before and after grouping. Note that you can use the ColumnView.BeginSort and ColumnView.EndSort methods to suppress these events when performing sequential sorting and grouping operations.

See the Grouping document for more information.

See Also

BeginSort()

EndSort()

EndGrouping

EndSorting

StartSorting

Data Grouping

ColumnView Class

ColumnView Members

DevExpress.XtraGrid.Views.Base Namespace