Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListView control problem
Message
From
04/08/2005 01:12:19
 
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
01038228
Message ID:
01038429
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform