Listview Control

vivek_nz76

Member
Joined
Sep 20, 2005
Messages
8
Programming Experience
3-5
I have to add the data from my collection to the listview control. How do I add index to the first column and subitems?
 
listview1.items(0).subitems(0) 'this refers to the first column and first cell of listview

althrough i prefer a different approach:
VB.NET:
Expand Collapse Copy
Dim lvItem as ListViewItem
lvitem = ListView1.Items.Add("something") 'this refers to the first column
lvItem.Subitems.Add("somethingElse") 'second column
lvItem.Subitems.Add("somethingElse") 'third column
etc...
{...}
HTH

Regards ;)
 
Back
Top