New to Telerik UI for WinFormsStart a free 30-day trial

Provides data for the CollectionChanging event.

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class NotifyCollectionChangingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsNotifyCollectionChangingEventArgs

Derived Classes: GridViewCollectionChangingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems, int startingIndex)
Parameters:actionNotifyCollectionChangedActionnewItemsIListoldItemsIListstartingIndexint

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList newItems, IList oldItems)
Parameters:actionNotifyCollectionChangedActionnewItemsIListoldItemsIList

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems, int index, int oldIndex)
Parameters:actionNotifyCollectionChangedActionchangedItemsIListindexintoldIndexint

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems, int startingIndex)
Parameters:actionNotifyCollectionChangedActionchangedItemsIListstartingIndexint

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, IList changedItems)
Parameters:actionNotifyCollectionChangedActionchangedItemsIList

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)
Parameters:actionNotifyCollectionChangedActionchangedItemobjectindexintoldIndexint

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem, int index)
Parameters:actionNotifyCollectionChangedActionchangedItemobjectindexint
C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index, PropertyChangingEventArgsEx propertyArgs)
Parameters:actionNotifyCollectionChangedActionnewItemobjectoldItemobjectindexintpropertyArgsPropertyChangingEventArgsEx

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem, int index)
Parameters:actionNotifyCollectionChangedActionnewItemobjectoldItemobjectindexint

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object newItem, object oldItem)
Parameters:actionNotifyCollectionChangedActionnewItemobjectoldItemobject

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action, object changedItem)
Parameters:actionNotifyCollectionChangedActionchangedItemobject

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

C#
public NotifyCollectionChangingEventArgs(NotifyCollectionChangedAction action)
Parameters:actionNotifyCollectionChangedAction

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

Properties

Provides data for the CollectionChanging event.

C#
public NotifyCollectionChangedAction Action { get; protected set; }

Gets the list of new items involved in the change.

C#
public IList NewItems { get; protected set; }

Gets the index at which the change occurred.

C#
public int NewStartingIndex { get; protected set; }

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

C#
public IList OldItems { get; protected set; }

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

C#
public int OldStartingIndex { get; protected set; }

Gets the property arguments when property changing has been fired.

C#
public PropertyChangingEventArgsEx PropertyArgs { get; protected set; }
Property Value:

The property arguments.