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

RepositoryItemSearchControl.ShowDefaultButtonsMode Property

Gets or sets the mode in which the Search and Clear buttons are displayed.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(ShowDefaultButtonsMode.Default)]
[DXCategory("Behavior")]
public ShowDefaultButtonsMode ShowDefaultButtonsMode { get; set; }

#Property Value

Type Default Description
DevExpress.XtraEditors.Repository.ShowDefaultButtonsMode Default

A ShowDefaultButtonsMode enumeration value that specifies the mode in which the Search and Clear buttons are displayed.

#Remarks

The ShowDefaultButtonsMode property allows you to specify how the SearchControl displays its default buttons. The ShowDefaultButtonsMode enumeration provides the following values:

Value

Description

AutoChangeSearchToClear and Default

The Search Button changes to the Clear Button if the text is typed in the search box

SearchControl_ShowDefaultButtonsMode _AutoChangeSearchToClear

AutoShowClear

The Clear Button is displayed if the text is typed in the search box

SearchControl_ShowDefaultButtonsMode _AutoShowClear

Always

Both the Search and Clear Buttons are always displayed

SearchControl_ShowDefaultButtonsMode _Always

The RepositoryItemSearchControl.ShowClearButton and RepositoryItemSearchControl.ShowSearchButton settings override the ShowDefaultButtonsMode setting.

See Also