Back to Devexpress

ColumnView.EndSorting Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-columnview-35c4c927.md

latest2.6 KB
Original Source

ColumnView.EndSorting Event

Fires after the sorting operation has been completed.

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 EndSorting
vb
<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

BeginSort()

EndSort()

EndGrouping

StartGrouping

StartSorting

Sort Data in Code

ColumnView Class

ColumnView Members

DevExpress.XtraGrid.Views.Base Namespace