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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16458 |

    I HAVE A XCEED GRID COMBOBOX COLUMN IN VB .NET
    IT HAS A 250 ITEMS IN COBMBOBOX LIST
    ITS WORKING PROPER BUT WHEN WE TYPE SOMETHING IN COMBOBOX
    IT FOCUS ON FIRST LETTER SIMILER TO ITEM IN LIST.
    I WANT THAT WHATEVER WE TYPE ITS FILTER THAT LIST IN COMBOBOX.
    EXAMPLE LIKE IF I TYPE ‘PETER’ THEN IT SHOULD COME ON ‘PETER’ ITEM
    IN COMBOBOX.
    CAN ANY BODY SOLVE MY PROBLEM
    THANKS IN ADVANCE.

    Imported from legacy forums. Posted by KaranRoy (had 1812 views)

    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)

    User (Old forums)
    Member
    Post count: 23064

    What is that gridcontrol1?   I thought we were dealing with a combobox so why are you adding this?

     

    Imported from legacy forums. Posted by van (had 300 views)

    User (Old forums)
    Member
    Post count: 23064

    Well, this is the “Xceed Grid for .NET” forums, so the original poster is using the ComboBox in the grid and not as a stand alone control.

     

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.