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

Provides item context for a cancelable value change and exposes the proposed and previous values.

The current list-view value-setting paths use the original setter argument rather than a handler-modified inherited NewValue. Set the inherited Cancel property to reject the change.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ListViewItemValueChangingEventArgs : ValueChangingEventArgs

Inheritance: objectEventArgsCancelEventArgsValueChangingEventArgsListViewItemValueChangingEventArgs

Inherited Members ValueChangingEventArgs.NewValueValueChangingEventArgs.OldValueCancelEventArgs.CancelEventArgs.Empty

Constructors

Creates event data for the specified item and its proposed and previous values.

C#
public ListViewItemValueChangingEventArgs(ListViewDataItem item, object newValue, object oldValue)
Parameters:itemListViewDataItem

The item whose value is changing.

newValueobject

The proposed value.

oldValueobject

The value before the change.

Properties

Gets the item whose value is changing.

C#
public ListViewDataItem Item { get; }
Property Value:

The affected item.

Gets the list-view element that owns the item.

C#
public RadListViewElement ListViewElement { get; }
Property Value:

The item's owning element.