Re: add subitems to listview
Re: add subitems to listview
you can also do in this way:
VB Code:
ListViewItem li = listView1.Items.Add("item1");
li.SubItems.Add("sub-item1");
li.SubItems.Add("sub-item2");
Re: add subitems to listview
The code you have posted is trying to call the Add method of a ListViewSubItem object, which does not exist. That code would not work in VB.NET either. You need to remove the index to the Subitems property:
Code:
listview1.item(0).subitems(1).add("blabla")
Re: add subitems to listview
yeah use brackets if you're accessing array elements
listview1.item[0]....
Re: add subitems to listview
ok thanks , that really helped me out
Re: add subitems to listview
Don't forget to resolve your thread from the Thread Tools menu.