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

Provides the old and proposed values for a cancelable item-value validation request.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ListViewItemValidatingEventArgs : ListViewItemCancelEventArgs

Inheritance: objectEventArgsCancelEventArgsListViewItemCancelEventArgsListViewItemValidatingEventArgs

Inherited Members ListViewItemCancelEventArgs.ItemListViewItemCancelEventArgs.ListViewElementCancelEventArgs.CancelEventArgs.Empty

Constructors

Creates validation data for the specified visual item and value pair.

C#
public ListViewItemValidatingEventArgs(BaseListViewVisualItem visualItem, object oldValue, object newValue)
Parameters:visualItemBaseListViewVisualItem

The visual item whose data item is being validated.

oldValueobject

The value captured before editing began.

newValueobject

The proposed value to validate.

Properties

Gets or sets the candidate value forwarded to the subsequent value-changing operation when this validation request is not canceled.

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

The candidate value for the item.

Gets the value captured before the edit began.

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

The original item or current-column value.