Class
NotifyCollectionChangingEventArgs

Provides data for the CollectionChanging event.

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public class NotifyCollectionChangingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsNotifyCollectionChangingEventArgs

Derived Classes: GridViewCollectionChangingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a Reset change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action)

Parameters

action

NotifyCollectionChangedAction

The action that caused the event. This must be set to Reset.

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems)

Parameters

action

NotifyCollectionChangedAction

changedItems

IList

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList, IList)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item Replace change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems)

Parameters

action

NotifyCollectionChangedAction

newItems

IList

oldItems

IList

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList, IList, int)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item Replace change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex)

Parameters

action

NotifyCollectionChangedAction

newItems

IList

oldItems

IList

startingIndex

int

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList, int)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item change or a reset change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex)

Parameters

action

NotifyCollectionChangedAction

changedItems

IList

startingIndex

int

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, IList, int, int)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item Move change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex)

Parameters

action

NotifyCollectionChangedAction

changedItems

IList

index

int

oldIndex

int

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a one-item change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem)

Parameters

action

NotifyCollectionChangedAction

changedItem

object

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, int)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a one-item change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem, int index)

Parameters

action

NotifyCollectionChangedAction

changedItem

object

index

int

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, int, int)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a multi-item Move change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)

Parameters

action

NotifyCollectionChangedAction

changedItem

object

index

int

oldIndex

int

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, object)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a one-item Replace change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem)

Parameters

action

NotifyCollectionChangedAction

newItem

object

oldItem

object

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, object, int)

Initializes a new instance of the NotifyCollectionChangingEventArgs class that describes a one-item Replace change.

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index)

Parameters

action

NotifyCollectionChangedAction

newItem

object

oldItem

object

index

int

NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction, object, object, int, PropertyChangingEventArgsEx)

Declaration

cs-api-definition
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index, PropertyChangingEventArgsEx propertyArgs)

Parameters

action

NotifyCollectionChangedAction

newItem

object

oldItem

object

index

int

propertyArgs

PropertyChangingEventArgsEx

Properties

Action

Provides data for the CollectionChanging event.

Declaration

cs-api-definition
public NotifyCollectionChangedAction Action { get; protected set; }

Property Value

NotifyCollectionChangedAction

NewItems

Gets the list of new items involved in the change.

Declaration

cs-api-definition
public IList NewItems { get; protected set; }

Property Value

IList

NewStartingIndex

Gets the index at which the change occurred.

Declaration

cs-api-definition
public int NewStartingIndex { get; protected set; }

Property Value

int

OldItems

Gets the list of items affected by a Replace, Remove, or Move action.

Declaration

cs-api-definition
public IList OldItems { get; protected set; }

Property Value

IList

OldStartingIndex

Gets the index at which a Move, Remove, ore Replace action occurred.

Declaration

cs-api-definition
public int OldStartingIndex { get; protected set; }

Property Value

int

PropertyArgs

Gets the property arguments when property changing has been fired.

Declaration

cs-api-definition
public PropertyChangingEventArgsEx PropertyArgs { get; protected set; }

Property Value

PropertyChangingEventArgsEx

The property arguments.