Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IObjectSpace.ObjectDeleting Event

Occurs when the specified objects are about to be deleted.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

#Event Data

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

Property Description
Objects Provides access to the objects that are being manipulated.

#Remarks

Raise this event before objects are marked as deleted from a dataset (see BaseObjectSpace.Delete). Use the handler’s ObjectsManipulatingEventArgs.Objects parameter to get the object(s) to be deleted.

When implementing the IObjectSpace interface in the BaseObjectSpace class’ descendant, you don’t have to declare this event. It’s declared within the BaseObjectSpace class. In addition, the BaseObjectSpace.OnObjectDeleting method raises this event. So, you should only invoke the OnObjectDeleting method before objects are marked as deleted.

See Also