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.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
[DefaultValue(GridLookUpSearchMode.AutoComplete)]
[DXCategory("Behavior")]
public GridLookUpSearchMode SearchMode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Grid |
Auto |
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. |
Auto |
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 Display The completed value is automatically assigned to the Edit |
Auto |
The editor fires the Grid This mode is suitable if the editor is not bound to a data source. The Text |
Auto |
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 Edit The Text |
#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 Grid