ColumnView.EndSorting Event

Fires after the sorting operation has been completed.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

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

Event Data

The EndSorting event's data class is EventArgs.

Remarks

When you sort data by a specific column, the grid does the following:

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

Note that when data is grouped, it is sorted as well. So the ColumnView.StartSorting and EndSorting events are also raised before and after grouping.

NOTE

The ColumnView.StartSorting and ColumnView.EndSorting events are not raised when changing 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