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

Provides the current and proposed values while an edited property value is validated before commit.

Setting the inherited Cancel property keeps the edit open and prevents the commit. Changing the inherited NewValue does not replace the active editor's value in the current edit path.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyValidatingEventArgs : PropertyGridItemValueChangingEventArgs

Inheritance: objectEventArgsCancelEventArgsValueChangingEventArgsPropertyGridItemValueChangingEventArgsPropertyValidatingEventArgs...

Inherited Members PropertyGridItemValueChangingEventArgs.ItemPropertyGridItemValueChangingEventArgs.PropertyGridElementValueChangingEventArgs.NewValueValueChangingEventArgs.OldValueCancelEventArgs.CancelEventArgs.Empty...

Constructors

Initializes validation event data for an item and its proposed value.

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

The property-grid item being edited.

newValueobject

The value proposed by the active editor.

oldValueobject

The item's value before the edit.