Represents event arguments when the sort order is changing.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
public class SortChangingEventArgs : CancelEventArgs
Inheritance: objectEventArgsCancelEventArgsSortChangingEventArgs
Inherited Members
Constructors
Initializes a new instance of the SortChangingEventArgs class.
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField oldSortExpression, GridSortField newSortExpression, int oldIndex, int newIndex)
Type of the sort change.
oldSortExpressionGridSortFieldThe old sort expression.
newSortExpressionGridSortFieldThe new sort expression.
oldIndexintThe old index.
newIndexintThe new index.
Initializes a new instance of the SortChangingEventArgs class.
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField oldSortExpression, GridSortField newSortExpression, int index)
Type of the sort change.
oldSortExpressionGridSortFieldThe old sort expression.
newSortExpressionGridSortFieldThe new sort expression.
indexintThe index.
Initializes a new instance of the SortChangingEventArgs class.
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField sortExpression, int oldIndex, int newIndex)
Type of the sort change.
sortExpressionGridSortFieldThe sort expression.
oldIndexintThe old index.
newIndexintThe new index.
Initializes a new instance of the SortChangingEventArgs class.
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField sortExpression, int index)
Type of the sort change.
sortExpressionGridSortFieldThe sort expression.
indexintThe index.
Initializes a new instance of the SortChangingEventArgs class.
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField sortExpression)
Type of the sort change.
sortExpressionGridSortFieldThe sort expression.
Initializes a new instance of the SortChangingEventArgs class.
public SortChangingEventArgs(SortChangeType sortChangeType)
Type of the sort change.
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.
Methods
Begins the item update.
public virtual void BeginItemUpdate()
Begins the update.
public virtual void BeginUpdate()
Ends the item update.
public void EndItemUpdate()
Resumes event notification.
Ends the update.
public void EndUpdate()
Resumes event notification.