listview question

  • Thread starter Thread starter WStoreyII
  • Start date Start date
W

WStoreyII

whenever i add an item to the listview it adds it to the first column.

how do i populate the other columns ?

WStoreyII
 
Hi WStoreyII,

You need to add subitems to your added item...

\\\
With ListView1.Items.Add("Column1Text")
.SubItems.Add("Column2Text")
.SubItems.Add("Column3Text")
End With
///

Note: Before you do this you need to make sure have added the correct number
of columns first otherwise you will get an exception if you try to add more
subitems than there are columns.

HTH,
Gary
 
WSII,

Don't forget to set the view to "Details". Otherwise only the items (first
column) and not the sub-items (other columns) will be seen.

ListView1.view=view.details
 
Back
Top