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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top