Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

XPBaseObject.Changed Event

Occurs when a property of the object is changed.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public event ObjectChangeEventHandler Changed

Event Data

The Changed event's data class is ObjectChangeEventArgs. The following properties provide information specific to this event:

Property Description
NewValue Gets or sets the property’s new value.
Object Gets or sets the object whose property has been changed.
OldValue Gets or sets the property’s old value.
PropertyName Gets the name of the property affected by the changes made.
Reason Gets the way in which the object has been changed.
Session Gets or sets the Session of the object whose property has been changed.

Remarks

The Changed event is raised after the XPBaseObject.OnChanged method has been called. The event parameter’s ObjectChangeEventArgs.PropertyName property returns the name of the property whose value has been changed. The ObjectChangeEventArgs.Reason property gets the way in which the object has been changed.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Changed event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also