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

Provides the proposed value and, when supplied, the previous value for a value-changing notification.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ValueChangingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsValueChangingEventArgs

Derived Classes: ListViewItemValueChangingEventArgsPropertyGridItemValueChangingEventArgsTreeNodeValueChangingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data with the proposed and previous values.

C#
public ValueChangingEventArgs(object newValue, object oldValue)
Parameters:newValueobject

The value proposed for the cell.

oldValueobject

The cell's value before the change.

Initializes event data with the proposed value.

C#
public ValueChangingEventArgs(object newValue)
Parameters:newValueobject

The value proposed for the cell.

This overload does not supply an old value, so OldValue is initialized to null.

Properties

Gets or sets the value proposed for the cell.

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

The value proposed for the cell.

Gets or sets the cell's previous value, when supplied.

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

The previous value, or null when none was supplied.