PopupBaseEdit.ClosePopup() Method

Closes the popup window accepting the changes made.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

public virtual void ClosePopup()
Public Overridable Sub ClosePopup

Remarks

The ClosePopup method lets you close the popup window and accept the changes made within it. Note: this method is not in effect for editors that only change their value only closing the popup window. For instance, the ColorEdit closes its dropdown immediately after changing the edited value so the popup cannot be open while the editor value is modified. Editors that allow value modifications while the dropdown is opened automatically save the modified value when the popup is closed (by clicking outside it or by pressing the key specified by the RepositoryItemPopupBase.CloseUpKey property or the ALT+DOWN ARROW key combination). Additionally, the MemoExEdit and ImageEdit editors provide an OK button within their popup windows.

The following events are raised when attempting to close the popup window:

To close the dropdown window discarding changes made, call the PopupBaseEdit.CancelPopup method.

See Also