Fires before a sorting operation is started.
NuGet Package: DevExpress.Win.Grid
[DXCategory("Sorting")] public event EventHandler StartSorting
<DXCategory("Sorting")> Public Event StartSorting As EventHandler
The StartSorting event's data class is EventArgs.
When sorting data by values of a column, the View does the following:
- raises the StartSorting event;
- sorts data;
- 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.
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.