Click here to Skip to main content
15,902,112 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have combobox in datagridview and i have set it's datasource to a datatable which contains about 19K rows.
 DataGridViewComboBoxEditingControl cbo = e.Control as DataGridViewComboBoxEditingControl;

cbo.DropDownStyle= ComboBoxStyle.DropDown;
cbo.AutoCompleteSource = AutoCompleteSource.ListItems;
cbo.AutoCompleteMode = AutoCompleteMode.Suggest;
cbo.Validating += new CancelEventHandler(cbo_Validating);

when i first press any key then it takes about 20 seconds or more to show the key pressed and suggestion too.

Is there any good alternative to get quick response against keypress, so i can get suggestion within no seconds.
Updated 15-Apr-14 6:24am
Sergey Alexandrovich Kryukov 15-Apr-14 17:07pm    
What effect do you want to have on a key press?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900