简体   繁体   中英

Can I bind a database with million records to a listbox?

Can I bind a list with over 1,000,000 records to a list box so that the list box is dynamically populated from the sqlite database as the user scrolls.

This is needed to show all our data in a list box without throwing an outofmemory exception. Is there any built in methods or framework's that I can use or do I need to build the control myself?

Also are there any disadvantages of this.

Cheers

You should virtualize UI and data loading. You can't just bind 1,000,000 item collection to the list without any code. Read this tutorial about displaying large data sets .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM