Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Faster way to fill a ListView??
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00747360
Message ID:
00747366
Views:
10
Try something like this:
 listBox1.BeginUpdate();
 ///Code that adds list items;
 listBox1.EndUpdate();
>Hello everyone!
>
>I have a question about efficiency on a list view. Currently I get a query back from out SQL server and store it into a DataTable. I then create a DataView to sort and filter that data table then I populate my ListView by going through the DataView item by item adding it to the ListView. I use a list view because of the support of icons and multiple columns, but when it takes a long time when I'm repopulating the list view with 3000+ records. Is there a more efficient way to get all the records from the sql server sorted/filtered and get them into the list view? Thanks for all your help!!
- Jayesh
Previous
Reply
Map
View

Click here to load this message in the networking platform