NuGet Package: DevExpress.ExpressApp
The DeleteObjectsViewController is intended for presenting the Delete Action.
In a Windows Forms application:
In an ASP.NET Web Forms application:
For details on the Delete Action, refer to the description of the DeleteObjectsViewController.DeleteAction property that provides access to this Action.
To customize the default behavior of the Delete Action, you can inherit from this Controller, or subscribe to its events. In addition, you can access the Action to modify its behavior.
This Controller has a descendant for ASP.NET Web Forms applications: WebDeleteObjectsViewController. Inherit from it if you need to implement a Web-specific behavior.
If you need to inherit from the DeleteObjectsViewController, the following protected virtual methods are availabe for overriding:
When is it called?
Invoked as a result of executing the Delete Action.
Represents the Delete Action’s SimpleAction.Execute event handler. Deletes the object(s) selected in the current View. In case of a List View, this method refreshes the collection source and editor. In case of a Detail View, the method closes it.
Raises the DeleteObjectsViewController.Deleting event.
Invoked as a result of changes made to the current View’s object(s):
Checks whether the Delete Action’s active or enabled state should be changed after the environment has been changed.
Public members are described individually in the documentation.
This Controller is activated for all Views. To ascertain whether the Controller is active, use the Controller.Active property. If you need to know the reason for its deactivation or activation at runtime, use the DiagnosticInfo Action.