The WinForms ComboBoxEdit uses incremental search to find items. This behavior is different from that of a standard combobox. This example demonstrates how to customize the DevExpress ComboBoxEdit
control to behave like a standard combobox.
The example creates a custom ComboBoxEdit and overrides the FindItem
method and AutoSearchText
property. Note that the RepositoryItemButtonEdit.TextEditStyle property should be set to TextEditStyles.DisableTextEditor
.
- CustomComboBoxEdit.cs (VB: CustomComboBoxEdit.vb)
- CustomRIComboBoxEdit.cs (VB: CustomRIComboBoxEdit.vb)
- Form1.cs
- MainForm.cs (VB: MainForm.vb)
(you will be redirected to DevExpress.com to submit your response)