Class
SortChangingEventArgs

Represents event arguments when the sort order is changing.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
public class SortChangingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsSortChangingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

SortChangingEventArgs(SortChangeType)

Initializes a new instance of the SortChangingEventArgs class.

Declaration

cs-api-definition
public SortChangingEventArgs(SortChangeType sortChangeType)

Parameters

sortChangeType

SortChangeType

Type of the sort change.

SortChangingEventArgs(SortChangeType, GridSortField)

Initializes a new instance of the SortChangingEventArgs class.

Declaration

cs-api-definition
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField sortExpression)

Parameters

sortChangeType

SortChangeType

Type of the sort change.

sortExpression

GridSortField

The sort expression.

SortChangingEventArgs(SortChangeType, GridSortField, GridSortField, int)

Initializes a new instance of the SortChangingEventArgs class.

Declaration

cs-api-definition
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField oldSortExpression, GridSortField newSortExpression, int index)

Parameters

sortChangeType

SortChangeType

Type of the sort change.

oldSortExpression

GridSortField

The old sort expression.

newSortExpression

GridSortField

The new sort expression.

index

int

The index.

SortChangingEventArgs(SortChangeType, GridSortField, GridSortField, int, int)

Initializes a new instance of the SortChangingEventArgs class.

Declaration

cs-api-definition
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField oldSortExpression, GridSortField newSortExpression, int oldIndex, int newIndex)

Parameters

sortChangeType

SortChangeType

Type of the sort change.

oldSortExpression

GridSortField

The old sort expression.

newSortExpression

GridSortField

The new sort expression.

oldIndex

int

The old index.

newIndex

int

The new index.

SortChangingEventArgs(SortChangeType, GridSortField, int)

Initializes a new instance of the SortChangingEventArgs class.

Declaration

cs-api-definition
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField sortExpression, int index)

Parameters

sortChangeType

SortChangeType

Type of the sort change.

sortExpression

GridSortField

The sort expression.

index

int

The index.

SortChangingEventArgs(SortChangeType, GridSortField, int, int)

Initializes a new instance of the SortChangingEventArgs class.

Declaration

cs-api-definition
public SortChangingEventArgs(SortChangeType sortChangeType, GridSortField sortExpression, int oldIndex, int newIndex)

Parameters

sortChangeType

SortChangeType

Type of the sort change.

sortExpression

GridSortField

The sort expression.

oldIndex

int

The old index.

newIndex

int

The new index.

Fields

NewIndex

Declaration

cs-api-definition
public readonly int NewIndex

Field Value

int

NewSortExpression

Declaration

cs-api-definition
public readonly GridSortField NewSortExpression

Field Value

GridSortField

OldIndex

Declaration

cs-api-definition
public readonly int OldIndex

Field Value

int

OldSortExpression

Declaration

cs-api-definition
public readonly GridSortField OldSortExpression

Field Value

GridSortField

SortChangeType

Declaration

cs-api-definition
public readonly SortChangeType SortChangeType

Field Value

SortChangeType

Properties

Index

Gets the index.

Declaration

cs-api-definition
public int Index { get; }

Property Value

int

The index.

IsUpdated

Gets the is updated.

Declaration

cs-api-definition
public bool IsUpdated { get; }

Property Value

bool

The is updated.

SortExpression

Gets the sort expression.

Declaration

cs-api-definition
public GridSortField SortExpression { get; }

Property Value

GridSortField

The sort expression.

Methods

BeginItemUpdate()

Begins the item update.

Declaration

cs-api-definition
public virtual void BeginItemUpdate()

BeginUpdate()

Begins the update.

Declaration

cs-api-definition
public virtual void BeginUpdate()

EndItemUpdate()

Ends the item update.

Declaration

cs-api-definition
public void EndItemUpdate()

EndItemUpdate(bool)

Resumes event notification.

Declaration

cs-api-definition
public virtual void EndItemUpdate(bool notifyUpdates)

Parameters

notifyUpdates

bool

EndUpdate()

Ends the update.

Declaration

cs-api-definition
public void EndUpdate()

EndUpdate(bool)

Resumes event notification.

Declaration

cs-api-definition
public virtual void EndUpdate(bool notifyUpdates)

Parameters

notifyUpdates

bool

Move(int, int)

// Occurs before an item is added, removed, changed, moved, or the entire list is refreshed. //

Declaration

cs-api-definition
public void Move(int oldIndex, int newIndex)

Parameters

oldIndex

int

The old index.

newIndex

int

The new index.