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

Provides data for the PreparingSortDescriptors event.

Definition

Namespace:Telerik.Windows.Controls.VirtualGrid

Assembly:Telerik.Windows.Controls.VirtualGrid.dll

Syntax:

C#
public class SortingEventArgs : CancelRoutedEventArgs

Inheritance: objectRadRoutedEventArgsCancelRoutedEventArgsSortingEventArgs

Inherited Members CancelRoutedEventArgs.Cancel

Constructors

Initializes a new instance of the SortingEventArgs class.

C#
public SortingEventArgs(SortingState oldSortingState, SortingState newSortingState, ColumnSortDescriptor sortDescriptor, int columnIndex)
Parameters:oldSortingStateSortingStatenewSortingStateSortingStatesortDescriptorColumnSortDescriptorcolumnIndexint

Properties

Gets the sorted column index.

C#
public int ColumnIndex { get; }

Gets the column sort descriptor.

C#
public ColumnSortDescriptor ColumnSortDescriptor { get; }

Gets or sets the sort direction.

C#
public SortingState NewSortDirection { get; set; }

Gets the old sort direction.

C#
public SortingState OldSortDirection { get; }