Home Forums WinForms controls Xceed Grid for WinForms Xceed Grid column combobox item filtering in vb.net Reply To: Xceed Grid column combobox item filtering in vb.net

User (Old forums)
Member
Post count: 23064

The WinComboBox (which is the control under the ComboBoxEditor) does not provide the AutoComplete feature in and of itself.  However, you can use the AutoCompleteSource to provide a similar functionality.

e.g. :

AutoCompleteStringCollection coll = new AutoCompleteStringCollection();

coll.AddRange(

new string[] { “Speedy Express”, “United Package”, “Federal Shipping” } );

box.TextBoxArea.AutoCompleteMode =

AutoCompleteMode.SuggestAppend;

box.TextBoxArea.AutoCompleteSource =

AutoCompleteSource.CustomSource;

box.TextBoxArea.AutoCompleteCustomSource = coll;

 

Then set the CellEditorManager on the Column with this WinComboBox.

e.g.:

gridControl1.Columns[ 0 ].CellEditorManager =

new CellEditorManager( box, “SelectedValue”, true, true );

 

Imported from legacy forums. Posted by André (had 1082 views)