Skip to main content

ColumnView.StartSorting Event

Fires before a sorting operation is started.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v23.2.dll

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


public event EventHandler StartSorting

Event Data

The StartSorting event's data class is EventArgs.


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.


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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the StartSorting event.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also