Skip to main content

BlobBaseEdit.PopupButtonsCreating Event

Allows you to hide OK and Cancel buttons displayed in the editor’s dropdown.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v25.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Events")]
public virtual event PopupButtonsEventHandler PopupButtonsCreating

Event Data

The PopupButtonsCreating event's data class is DevExpress.XtraEditors.PopupButtonsEventArgs.

Remarks

Handle the PopupButtonsCreating event to control which buttons appear in the editor’s dropdown. Set e.ShowButtons to false to hide OK and Cancel buttons.

Use e.CloseButtonStyle to hide the Cancel button or display its icon instead of the caption.

using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Popup;

void memoExEdit1_PopupButtonsCreating(object sender, PopupButtonsEventArgs e) {
    e.CloseButtonStyle = BlobCloseButtonStyle.Caption;
    e.ShowButtons = false;
}
See Also