ColumnView.StartSorting Event

Fires before a sorting operation is started.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Sorting")]
public event EventHandler StartSorting
<DXCategory("Sorting")>
Public Event StartSorting As EventHandler

Event Data

The StartSorting event's data class is EventArgs.

Remarks

When sorting data by values of a column, the View does the following:

  1. raises the StartSorting event;
  2. sorts data;
  3. raises the ColumnView.EndSorting event.

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

NOTE

The ColumnView.StartSorting and ColumnView.EndSorting events are not raised, when changing the data while the View is already sorted. In this case, the modified row may move to another position due to the current sort rules without firing these events.

See the Sorting in Code document for more information.

See Also