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

Provides data for the GridViewCollectionChanging event

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class GridViewCollectionChangingEventArgs : NotifyCollectionChangingEventArgs

Inheritance: objectEventArgsCancelEventArgsNotifyCollectionChangingEventArgsGridViewCollectionChangingEventArgs

Inherited Members NotifyCollectionChangingEventArgs.ActionNotifyCollectionChangingEventArgs.PropertyArgsNotifyCollectionChangingEventArgs.NewItemsNotifyCollectionChangingEventArgs.NewStartingIndexNotifyCollectionChangingEventArgs.OldItemsNotifyCollectionChangingEventArgs.OldStartingIndexCancelEventArgs.CancelEventArgs.Empty...

Constructors

Initializes a new instance of the GridViewCollectionChangingEventArgs class.

C#
public GridViewCollectionChangingEventArgs(GridViewTemplate template, NotifyCollectionChangedAction action, IList newItems, IList oldItems, int newStartingIndex, int oldStartingIndex, PropertyChangingEventArgsEx propertyArgs)
Parameters:templateGridViewTemplate

The GridViewTemplate

actionNotifyCollectionChangedAction

The NotifyCollectionChangedAction

newItemsIList

The new items list

oldItemsIList

The old items list

newStartingIndexint

The new items starting index

oldStartingIndexint

The old items starting index

propertyArgsPropertyChangingEventArgsEx

The property changing arguments

Initializes a new instance of the GridViewCollectionChangingEventArgs class.

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

The GridViewTemplate

actionNotifyCollectionChangedAction

The NotifyCollectionChangedAction

changedItemobject

The changed item

indexint

The index

oldIndexint

The old index

Initializes a new instance of the GridViewCollectionChangingEventArgs class.

C#
public GridViewCollectionChangingEventArgs(GridViewTemplate template, NotifyCollectionChangedAction action, object newItem, object oldItem, int index, PropertyChangingEventArgsEx propertyArgs)
Parameters:templateGridViewTemplate

The GridViewTemplate

actionNotifyCollectionChangedAction

The NotifyCollectionChangedAction

newItemobject

The new item

oldItemobject

The old item

indexint

The new index

propertyArgsPropertyChangingEventArgsEx

The property changing arguments

Properties

C#
public GridViewTemplate GridViewTemplate { get; }

Gets the new value.

C#
public object NewValue { get; }
Property Value:

The new value.

Gets the old value.

C#
public object OldValue { get; }
Property Value:

The old value.

Gets the name of the property.

C#
public string PropertyName { get; }
Property Value:

The name of the property.