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

Provides the candidate object or object array and cancellation state before the PropertyGrid changes its binding.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PropertyGridSelectedObjectChangingEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsPropertyGridSelectedObjectChangingEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data for the candidate object with the specified cancellation state.

C#
public PropertyGridSelectedObjectChangingEventArgs(object selectedObject, bool cancel)
Parameters:selectedObjectobject

The object or object array the PropertyGrid is about to display.

cancelbool

true to mark the change as canceled.

Initializes event data for the candidate object with cancellation disabled.

C#
public PropertyGridSelectedObjectChangingEventArgs(object selectedObject)
Parameters:selectedObjectobject

The object the PropertyGrid is about to display.

Properties

Gets the candidate object or object array whose properties would be displayed if the change is not canceled.

C#
public object SelectedObject { get; }