Skip to main content

IObjectSpace.ConfirmationRequired Event

Occurs when performing Refresh or Rollback operations with the current Object Space’s persistent objects.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v25.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

event EventHandler<ConfirmationEventArgs> ConfirmationRequired

Event Data

The ConfirmationRequired event's data class is DevExpress.ExpressApp.ConfirmationEventArgs.

Remarks

BaseObjectSpace raises the ConfirmationRequired event from the BaseObjectSpace.Refresh and BaseObjectSpace.Rollback methods when unsaved changes exist.

Windows Forms applications automatically handle this event to show confirmation messages in all Object Views (both Detail Views and List Views). The following topics describe how to change this behavior:

If you implement the IObjectSpace interface in a descendant of the BaseObjectSpace class, you do not need to raise this event. The BaseObjectSpace.Refresh and BaseObjectSpace.Rollback methods raise it for you.

You only need to override the protected virtual BaseObjectSpace.Reload method. The system calls this virtual method from the BaseObjectSpace.Refresh and BaseObjectSpace.Rollback methods when it must reload the container for in-memory objects. For example, it reloads XPObjectSpace.Session in the XPObjectSpace case, or EFCoreObjectSpace.DbContext in the EFCoreObjectSpace case.

See Also