Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Faster way to fill a ListView??
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00747360
Message ID:
00747366
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform