Skip to main content
A newer version of this page is available. .

PopupBaseEdit.Closed Event

Allows you to perform specific actions with respect to how the popup window was closed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DXCategory("Events")]
public virtual event ClosedEventHandler Closed

Event Data

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

Property Description
CloseMode Gets a value that specifies why the popup editor’s dropdown window was closed.

Remarks

The Closed event occurs after the popup window has been closed. The event’s ClosedEventArgs.CloseMode parameter specifies how the popup window was closed (by submitting or discarding an option, by clicking an assigned shortcut, by clicking the dropdown button or by clicking outside the editor).

Handle this event to perform specific actions depending on how the popup window was closed. For instance, you can postprocess the selected value, switch focus to another control, etc.

The Closed event is equivalent to the RepositoryItemPopupBase.Closed event available via the editor’s Properties property, i.e. adding/removing an event handler for the current event actually affects the RepositoryItemPopupBase.Closed event.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Closed 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