一个列表框可以容纳多少行?Windows 窗体应用程序 [英] How Many Rows Can A Listbox Hold? Windows Form Application
问题描述
我的 Access 数据库中有超过 9,00,000 条记录,但列表框中仅显示其中的一小部分.一个列表框可以容纳多少行?大约 65K 是我从研究中得到的答案.谢谢!
I have over 9,00,000 records in my Access database but only a fraction of that is being displayed in the listbox. How Many Rows Can A Listbox Hold? Around 65K is the answer I got from my research. Thanks!
推荐答案
我不确定确切的限制是什么(下面提供的 url 提供了一些建议)我认为您想要填充列表框的项目数量会如果用那么多记录填充它,可能会大大降低您的计算机速度.
I'm not sure what the exact limit is (The url provided below gives some suggestions) I think the number of items you want to populate the listbox with will probably slow your computer down alot if it's populating it with that many records.
也许您应该考虑使用不同的控件来允许分页,例如 DataGrid 或类似的东西,以便一次显示 100 个结果?
Maybe you should consider using a different control that allows paging like a DataGrid or something similar to display 100 results at a time?
此链接可能对您有用:http://codeguru.earthweb.com/forum/showthread.php?p=1715288
使用分页创建数据网格:http://support.microsoft.com/kb/305271
Creating datagrid with paging: http://support.microsoft.com/kb/305271
这篇关于一个列表框可以容纳多少行?Windows 窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!