SortChangedEventArgs
Represents event arguments when the sort order is changed.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class SortChangedEventArgs : EventArgs
Inheritance: objectEventArgsSortChangedEventArgs
Inherited Members
Constructors
Initializes a new instance of the SortChangedEventArgs class.
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField oldSortExpression, GridSortField newSortExpression, int oldIndex, int newIndex)
Type of the sort changed.
oldSortExpressionGridSortFieldThe old sort expression.
newSortExpressionGridSortFieldThe new sort expression.
oldIndexintThe old index.
newIndexintThe new index.
Initializes a new instance of the SortChangedEventArgs class.
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField oldSortExpression, GridSortField newSortExpression, int index)
Type of the sort changed.
oldSortExpressionGridSortFieldThe old sort expression.
newSortExpressionGridSortFieldThe new sort expression.
indexintThe index.
Initializes a new instance of the SortChangedEventArgs class.
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField sortExpression, int oldIndex, int newIndex)
Type of the sort changed.
sortExpressionGridSortFieldThe sort expression.
oldIndexintThe old index.
newIndexintThe new index.
Initializes a new instance of the SortChangedEventArgs class.
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField sortExpression, int index)
Type of the sort changed.
sortExpressionGridSortFieldThe sort expression.
indexintThe index.
Initializes a new instance of the SortChangedEventArgs class.
public SortChangedEventArgs(SortChangeType sortChangedType, GridSortField sortExpression)
Type of the sort changed.
sortExpressionGridSortFieldThe sort expression.
Initializes a new instance of the SortChangedEventArgs class.
public SortChangedEventArgs(SortChangeType sortChangedType)
Type of the sort changed.
Fields
Gets the sort expression's position after the change, or -1 when no new index was supplied.
public readonly int NewIndex
Gets the sort expression after the change, when supplied by the constructor.
public readonly GridSortField NewSortExpression
Gets the sort expression's position before the change, or -1 when no old index was supplied.
public readonly int OldIndex
Gets the sort expression before the change, when supplied by the constructor.
public readonly GridSortField OldSortExpression
Identifies the collection operation represented by the notification.
public readonly SortChangeType SortChangeType
Properties
Gets the sort expression.
public GridSortField SortExpression { get; }
The sort expression.