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 Class

An item in an editor container’s repository used to create a SearchControl.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public class RepositoryItemSearchControl :
    RepositoryItemMRUEdit

The following members return RepositoryItemSearchControl objects:

#Remarks

Use RepositoryItemSearchControl objects to embed a SearchControl in bars and ribbons.

SearchControl_WithinBar

See the following topic to learn more on how repository items are used to embed editors into XtraGrid, XtraVerticalGrid, XtraTreeList, and XtraBars: Editors and Simple Controls.

Do the following to embed a SearchControl in a bar in code:

using DevExpress.XtraBars;
using DevExpress.XtraEditors.Repository;

RepositoryItemSearchControl repositoryItemSearchControl1 = new RepositoryItemSearchControl();
BarEditItem barEditItem1 = new BarEditItem();
barEditItem1.Edit = repositoryItemSearchControl1;
bar1.AddItem(barEditItem1);

The image below shows how to embed a SearchControl in a bar at design time.

SearchControl_OnBar

#Client Control

Use the Client property to specify the control that should be filtered with the created SearchControl.

See Also