Skip to main content
A newer version of this page is available. .

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.v19.1.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(false)]
[SmartTagProperty("Show Close Button", "", 0, SmartTagActionType.RefreshBoundsAfterExecute)]
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