RepositoryItemLookUpEdit.SearchMode Property
Gets or sets whether to immediately apply the found value to the editor as a user types a query, or only highlight the found value in the drop-down window.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
[DefaultValue(SearchMode.AutoFilter)]
[DXCategory("Behavior")]
public SearchMode SearchMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Search |
Auto |
A Search |
Available values:
Name | Description |
---|---|
Only |
The incremental search is enabled only when the dropdown window is open. If the window is closed, the user can modify the text in the edit box. However these changes are ignored. When the dropdown is open the incremental search is performed against the column whose index is specified by the Repository |
Auto |
Enables the automatic completion feature. In this mode, when the dropdown is closed, the text in the edit box is automatically completed if it matches a Repository |
Auto |
Enables the incremental filtering feature. When you type within the edit box, the editor automatically opens the dropdown window and displays only records whose Repository The found value is immediately applied to the editor as a user types a query. |
Auto |
The editor fires the |
Auto |
The editor unlocks its text box and allows users to type in text. Data source records that match this text are shown in the drop-down panel. The user must highlight the required row to select a new value. Handle the Auto
|
#Remarks
The code below shows how to enable the OnlyInPopup
mode, specify the column for search, allow users to change it, and enable case sensitive queries.
using DevExpress.XtraEditors.Controls;
lookUpEdit1.Properties.SearchMode = SearchMode.OnlyInPopup;
lookUpEdit1.Properties.AutoSearchColumnIndex = 1;
lookUpEdit1.Properties.HeaderClickMode = HeaderClickMode.AutoSearch;
lookUpEdit1.Properties.CaseSensitiveSearch = true;
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the SearchMode property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.