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

Provides the item and its proposed and previous values during a value-changing notification.

Set the inherited Cancel property to prevent the write. Although NewValue is mutable, the item setter commits its converted value rather than a replacement assigned by a handler.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyGridItemValueChangingEventArgs : ValueChangingEventArgs

Inheritance: objectEventArgsCancelEventArgsValueChangingEventArgsPropertyGridItemValueChangingEventArgs

Derived Classes: PropertyValidatingEventArgs

Inherited Members ValueChangingEventArgs.NewValueValueChangingEventArgs.OldValueCancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data for a property's proposed value change.

C#
public PropertyGridItemValueChangingEventArgs(PropertyGridItemBase item, object newValue, object oldValue)
Parameters:itemPropertyGridItemBase

The property-grid item being changed.

newValueobject

The value proposed for the item.

oldValueobject

The item's value before the change.

Properties

Gets the property-grid item whose value is changing.

C#
public PropertyGridItemBase Item { get; }

Gets the table element associated with the item, or null when it is not attached to a grid.

C#
public PropertyGridTableElement PropertyGridElement { get; }