Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView control problem
Message
De
04/08/2005 01:12:19
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01038228
Message ID:
01038429
Vues:
27
Einar,

I know, it doesn't seem to make sense, but there's obviously something different between the two subitems ... I just don't know what it is (and I'm not gonna lose any sleep over it <g>).

Oh, and BTW, it's more efficient to add all the items at once with the .AddRange() method:
ListViewItem[] items = new ListViewItem[41];
>
for (int i = 0 ; i < 42 ; i++)
{
	items[i] = new ListViewItem((i+1).ToString());
	lvi.SubItems.Add("Cycle " +(i+1).ToString().PadLeft(2,'0'));
}
this.listView1.Items.AddRange(items);
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform