New to Telerik UI for WPFStart a free 30-day trial

Provides details about the Sorting event.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.GridView.dll

Syntax:

C#
public class GridViewSortingEventArgs : CancelRoutedEventArgs

Inheritance: objectRadRoutedEventArgsCancelRoutedEventArgsGridViewSortingEventArgs

Inherited Members CancelRoutedEventArgs.Cancel

Constructors

Initializes a new instance of the GridViewSortingEventArgs class.

C#
public GridViewSortingEventArgs(GridViewColumn column, SortingState oldSortingState, SortingState newSortingState)
Parameters:columnGridViewColumn

The associated column.

oldSortingStateSortingState

The old SortingState.

newSortingStateSortingState

The new SortingState.

Properties

Gets the associated column.

C#
public GridViewColumn Column { get; }
Property Value:

The column.

Gets the source data control that triggered the sorting event. That is either the RadGridView control or a hierarchy child.

C#
public GridViewDataControl DataControl { get; }

Gets a value indicating whether the current sorting operation is a multiple column one.

C#
public bool IsMultipleColumnSorting { get; }
Property Value:

true if a multiple column sorting is executed; otherwise, false.

Gets or sets the new sorting state.

C#
public SortingState NewSortingState { get; set; }
Property Value:

The new direction of sorting.

Gets the old sorting state.

C#
public SortingState OldSortingState { get; }
Property Value:

The old direction of sorting.