为什么datagridview ComboBox响应缓慢 [英] why datagridview ComboBox Responses Slowly

查看:96
本文介绍了为什么datagridview ComboBox响应缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在datagridview中有组合框,并且我已将其数据源设置为包含大约19K行的数据表。

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);





当我第一次按任意键然后它大约需要20秒或更长时间来显示按键和建议。



有没有什么好办法可以快速响应按键,所以我可以在几秒钟内得到建议。



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.

推荐答案

这篇关于为什么datagridview ComboBox响应缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆