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

RepositoryItemCalcEdit.ShowCloseButton Property

Gets or sets the value indicating whether the close button should be displayed in the dropdown window.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool ShowCloseButton { get; set; }

#Property Value

Type Default Description
Boolean false

true if the close button is displayed in the dropdown; otherwise false.

#Remarks

The ShowCloseButton property allows you to specify whether the close button is displayed in the left bottom corner of the dropdown window. The following image shows a calc editor with the close button drawn using the XP theme.

CalcEdit_ShowCloseButton

When the end-user clicks this button, the dropdown window is closed without accepting the entered value.

This is similar to calling the PopupBaseEdit.CancelPopup method.

After clicking the close button the following events occur:

See Also