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

Stores an item and its old and proposed values for property-item validation data.

The current PropertyGrid implementation does not expose an event that uses this type or raise these event arguments.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyGridItemValidatingEventArgs : RadPropertyGridCancelEventArgs

Inheritance: objectEventArgsCancelEventArgsRadPropertyGridCancelEventArgsPropertyGridItemValidatingEventArgs

Inherited Members RadPropertyGridCancelEventArgs.ItemCancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes validation event data from a visual item and its old and proposed values.

C#
public PropertyGridItemValidatingEventArgs(PropertyGridItemElementBase visualItem, object oldValue, object newValue)
Parameters:visualItemPropertyGridItemElementBase

The visual item whose data item is being validated.

oldValueobject

The value before the proposed change.

newValueobject

The proposed value.

Properties

Gets or sets the value proposed for the item.

C#
public object NewValue { get; set; }

Gets the value before the proposed change.

C#
public object OldValue { get; }