Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ListView control problem
Message
De
03/08/2005 16:38:32
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
01038228
Message ID:
01038313
Vues:
16
Einar,

I suspected that it had something to do with the way you were populating your ListView columns, and it turns out I was correct. But, why my way works and yours doesn't, I'm not 100% sure. Anyway, try it this way and you should see good results.
	for (int i = 0 ; i < 42 ; i++)
	{
		textItem = (i+1).ToString();
		textSub  = "Cycle " +(i+1).ToString().PadLeft(2,'0');

		lvi = new ListViewItem(textItem);
		lvi.SubItems.Add(textSub);

		this.listView1.Items.Add(lvi);
	}
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform