All docs
V19.2
21.1
20.2
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
A newer version of this page is available. Switch to the current version.

RepositoryItemGridLookUpEdit.SearchMode Property

Gets or sets whether the editor automatically completes the value, filters the drop-down list, or provides custom suggestions when the user types a query in the edit box.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(GridLookUpSearchMode.AutoComplete)]
public GridLookUpSearchMode SearchMode { get; set; }

Property Value

Type Default Description
GridLookUpSearchMode

AutoComplete

A value that specifies the editor behavior when the user types a query in the edit box.

Available values:

Name Description
None

The editor does not automatically complete the query.

AutoComplete

The editor looks for values that start with the entered query and automatically selects the first row that fits the query.

The query is compared against values in the DisplayMember data source field.

The completed value is automatically assigned to the EditValue property.

AutoSuggest

The editor fires the GridLookUpEdit.Properties.AutoSuggest event that allows you to provide custom suggestions in the drop-drop list.

This mode is suitable if the editor is not bound to a data source.

The TextEditStyle property is automatically set to Standard in this mode.

AutoSearch

The editor looks for values that contain the entered query, filters the drop-down list, and highlights the found query.

To assign a value to the EditValue property, the user should select a row and press Enter or double-click it.

The TextEditStyle property is automatically set to Standard in this mode.

Remarks

A lookup editor allows users to select a value from a drop-down list. However, users can type a query in the edit box. Depending on the SearchMode property, the editor looks for an appropriate value in the drop-down list: automatically selects the first row that starts with the query, shows only rows that contain the query, or provides custom suggestions (even if the editor is not bound to a data source).

NOTE

Run the Extended Lookup Editor demo to see the modes in action for the GridLookUpEdit. Run the Lookup Editor or Auto-Suggest Lookup Editor demo to see the modes in action for the LookUpEdit control. Click Open Solution in the ribbon for source codes.

See Also