All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

DateTimeOffsetEdit.Closed Event

Occurs when the editor drop-down menu is closed. Allows you to identify what caused the menu to close.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.2.dll

Declaration

[Browsable(true)]
[DXCategory("Events")]
[EditorBrowsable(EditorBrowsableState.Always)]
public override event ClosedEventHandler Closed
<Browsable(True)>
<EditorBrowsable(EditorBrowsableState.Always)>
<DXCategory("Events")>
Public Overrides Event Closed As ClosedEventHandler

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

Read the ClosedEventArgs.CloseMode property to learn how a menu was closed.

void DateTimeOffsetEdit1_Closed(object sender, ClosedEventArgs e) {
    switch (e.CloseMode) {
        case PopupCloseMode.ButtonClick:
            //a user clicked the editor drop-down button
            break;
        case PopupCloseMode.Cancel:
            //a user clicked "Cancel" or pressed Esc
            break;
        case PopupCloseMode.CloseUpKey:
            //a user pressed Alt+DownArrow, or another hotkey assigned
            //to the CloseUpKey property
            break;
        case PopupCloseMode.Immediate:
            //a user clicked ouside the drop-down menu
            break;
        case PopupCloseMode.Normal:
            //a user clicked "OK"
            break;
    }
}
See Also