New to Telerik UI for WinForms? Start a free 30-day trial

Represents event arguments when the sort order is changed.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class SortChangedEventArgs : EventArgs

Inheritance: objectEventArgsSortChangedEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the SortChangedEventArgs class.

C#
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField oldSortExpression, GridSortField newSortExpression, int oldIndex, int newIndex)
Parameters:sortChangedTypeSortChangeType

Type of the sort changed.

oldSortExpressionGridSortField

The old sort expression.

newSortExpressionGridSortField

The new sort expression.

oldIndexint

The old index.

newIndexint

The new index.

Initializes a new instance of the SortChangedEventArgs class.

C#
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField oldSortExpression, GridSortField newSortExpression, int index)
Parameters:sortChangedTypeSortChangeType

Type of the sort changed.

oldSortExpressionGridSortField

The old sort expression.

newSortExpressionGridSortField

The new sort expression.

indexint

The index.

Initializes a new instance of the SortChangedEventArgs class.

C#
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField sortExpression, int oldIndex, int newIndex)
Parameters:sortChangedTypeSortChangeType

Type of the sort changed.

sortExpressionGridSortField

The sort expression.

oldIndexint

The old index.

newIndexint

The new index.

Initializes a new instance of the SortChangedEventArgs class.

C#
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField sortExpression, int index)
Parameters:sortChangedTypeSortChangeType

Type of the sort changed.

sortExpressionGridSortField

The sort expression.

indexint

The index.

Initializes a new instance of the SortChangedEventArgs class.

C#
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField sortExpression)
Parameters:sortChangedTypeSortChangeType

Type of the sort changed.

sortExpressionGridSortField

The sort expression.

Initializes a new instance of the SortChangedEventArgs class.

C#
public SortChangedEventArgs(SortChangeType sortChangedType)
Parameters:sortChangedTypeSortChangeType

Type of the sort changed.

Fields

Gets the sort expression's position after the change, or -1 when no new index was supplied.

C#
public readonly int NewIndex

Gets the sort expression after the change, when supplied by the constructor.

C#
public readonly GridSortField NewSortExpression

Gets the sort expression's position before the change, or -1 when no old index was supplied.

C#
public readonly int OldIndex

Gets the sort expression before the change, when supplied by the constructor.

C#
public readonly GridSortField OldSortExpression

Identifies the collection operation represented by the notification.

C#
public readonly SortChangeType SortChangeType

Properties

Gets the index.

C#
public int Index { get; }
Property Value:

The index.

Gets the sort expression.

C#
public GridSortField SortExpression { get; }
Property Value:

The sort expression.