Back to Devexpress

RepositoryItemComboBox.AutoComplete Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcombobox-5c270c4a.md

latest2.5 KB
Original Source

RepositoryItemComboBox.AutoComplete Property

Gets or sets a value that specifies whether the auto completion feature is enabled.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
public virtual bool AutoComplete { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(True)>
Public Overridable Property AutoComplete As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the auto completion is enabled; otherwise, false.

|

Remarks

The auto completion feature enables the end-user to select items from the dropdown by typing their first characters in the edit box. When you type text in the editor, the control looks for an item starting with the characters typed, then highlights the item in the dropdown (if it is open) and displays the item’s full caption in the edit box.

For instance, typing ‘b’ in the following combo box locates the ‘Barcelona’ item

If you type the ‘e’ character then, the ‘Berlin’ item is focused.

You can press the Enter key to submit your choice.

By default, the search is performed ignoring case. If you need a case sensitive search, set the RepositoryItemComboBox.CaseSensitiveSearch property to true.

See Also

CaseSensitiveSearch

RepositoryItemComboBox Class

RepositoryItemComboBox Members

DevExpress.XtraEditors.Repository Namespace