Back to Devexpress

PopupBaseEdit.ShowPopup() Method

windowsforms-devexpress-dot-xtraeditors-dot-popupbaseedit-e7b74e5e.md

latest3.7 KB
Original Source

PopupBaseEdit.ShowPopup() Method

Opens the popup window.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public virtual void ShowPopup()
vb
Public Overridable Sub ShowPopup

Remarks

The ShowPopup method enables you to open the popup window via code. Use this method to simplify end-user input. For instance, you may want to open an editor’s popup window as soon as the editor receives focus.

The ShowPopup method will not succeed in the following cases:

To close the popup window via code, you can call either the PopupBaseEdit.ClosePopup or PopupBaseEdit.CancelPopup methods. These methods allow you to accept or discard the changes made within the popup window.

Online Video

WinForms Grid: Date Popups when Cell is Clicked.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowPopup() method.

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.

winforms-grid-single-button-click-multiple-selection/CS/WindowsApplication168/Form1.cs#L51

csharp
{
    ((ComboBoxEdit)view.ActiveEditor).ShowPopup();
    PerformClick(edit, new ButtonPressedEventArgs(ehi.HitObject as EditorButton));

winforms-grid-single-button-click-multiple-selection/VB/WindowsApplication168/Form1.vb#L43

vb
If ehi.HitTest = EditHitTest.Button Then
    CType(view.ActiveEditor, ComboBoxEdit).ShowPopup()
    PerformClick(edit, New ButtonPressedEventArgs(TryCast(ehi.HitObject, EditorButton)))

See Also

ActionButtonIndex

ShowDropDown

QueryPopUp

ClosePopup()

CancelPopup()

PopupBaseEdit Class

PopupBaseEdit Members

DevExpress.XtraEditors Namespace