-
listview
Hi:
how to add an array to viewlist?
I just can't find the way to define such array so that I can use it
I've tried such way:
viewList1.Item[] item = new viewList1.Item[3];
ListViewItem[] item = new ListViewItem[3];
but neither of them works.
I've checked MSDN
it has such example:
viewList1.Item[0].SubItems.Add("John Smith");
I don't know how to create such things Item[0] :(
thanx
-
PHP Code:
ListViewItem l = new ListViewItem();
l.Text = "First Item";
l.SubItems.Add( "subitem1" );
l.SubItems.Add( "subitem2" );
listView1.Items.Add( l );
-
Thanx, I got it
and also I found out
ListViewItem[] item = new ListViewItem[X];
it works great for arrays. :)
but how could I get the subitem's name using something like
l.subitem.????