New to Telerik UI for WinForms? Start a free 30-day trial

Provides data for the GridViewCollectionChanged event

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewCollectionChangedEventArgs : NotifyCollectionChangedEventArgs

Inheritance: objectEventArgsNotifyCollectionChangedEventArgsGridViewCollectionChangedEventArgs

Inherited Members NotifyCollectionChangedEventArgs.PropertyNameNotifyCollectionChangedEventArgs.ActionNotifyCollectionChangedEventArgs.ResetReasonNotifyCollectionChangedEventArgs.NewItemsNotifyCollectionChangedEventArgs.NewStartingIndexNotifyCollectionChangedEventArgs.OldItemsNotifyCollectionChangedEventArgs.OldStartingIndexEventArgs.Empty...

Constructors

Initializes a new instance of the GridViewCollectionChangedEventArgs class.

C#
public GridViewCollectionChangedEventArgs(GridViewTemplate template, NotifyCollectionChangedAction action, IList newItems, IList oldItems, int newStartingIndex, int oldStartingIndex, string propertyName)
Parameters:templateGridViewTemplate

The template that owns the changed collection.

actionNotifyCollectionChangedAction

The collection change action.

newItemsIList

The new or moved items, including replacements, associated with the change.

oldItemsIList

The old or moved items, including items replaced by the change.

newStartingIndexint

The starting index of the new items.

oldStartingIndexint

The starting index of the old items.

propertyNamestring

The changed property name for an item-property notification.

Initializes a new instance of the GridViewCollectionChangedEventArgs class.

C#
public GridViewCollectionChangedEventArgs(GridViewTemplate template, NotifyCollectionChangedAction action, object changedItem, int index, int oldIndex)
Parameters:templateGridViewTemplate

The template that owns the changed collection.

actionNotifyCollectionChangedAction

The collection change action.

changedItemobject

The item affected by the change.

indexint

The index associated with the change.

oldIndexint

The previous index when an item is moved.

Initializes a new instance of the GridViewCollectionChangedEventArgs class.

C#
public GridViewCollectionChangedEventArgs(GridViewTemplate template, NotifyCollectionChangedAction action, object newItem, object oldItem, int index, string propertyName)
Parameters:templateGridViewTemplate

The template that owns the changed item.

actionNotifyCollectionChangedAction

The collection change action.

newItemobject

The new or current item associated with the change.

oldItemobject

The old item associated with the change, when available.

indexint

The index of the changed item.

propertyNamestring

The changed property name for an item-property notification.

Properties

Gets the GridViewTemplate where the event was fired.

C#
public GridViewTemplate GridViewTemplate { get; }