Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemPopupGalleryEdit.ShowButtons Property

Gets or sets whether the OK and Cancel buttons are displayed in the PopupGalleryEdit popup window.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(true)]
[DXCategory("Appearance")]
public bool ShowButtons { get; set; }

#Property Value

Type Default Description
Boolean true

true if the OK and Cancel buttons are displayed; otherwise, false.

#Remarks

The OK and Cancel buttons that are displayed in the PopupGalleryEdit popup window allow an end-user to save and discard the current selection. Use the ShowButtons property to specify the visibility of these buttons.

It is recommended to display these buttons if multiple item selection is enabled. If the ShowButtons property is set to true, you can also hide the Cancel button with the RepositoryItemPopupGalleryEdit.ShowPopupCloseButton property.

If the ShowButtons property is set to false, you can allow an end-user to save the current selection on a gallery item click. To accomplish this, set the PopupGalleryEditGallery.CloseOnItemClick property to true. This behavior is not recommended in multiple item selection mode.

See Also