Master
Jan 5th, 2000, 11:31 AM
I can add items to the listview when using
the columnheaders, but i can't get any items to go into the other columns... how do i do this??
Mark Sreeves
Jan 5th, 2000, 03:21 PM
you need to used the subitems er... thingy :)
Option Explicit
Private Sub Command1_Click()
Dim itmX As ListItem
Set itmX = ListView1.ListItems.Add(, , "something in col 1")
itmX.SubItems(1) = "something in col 2"
itmX.SubItems(2) = "somehing in col 3"
End Sub
Private Sub Form_Load()
ListView1.View = lvwReport
ListView1.ColumnHeaders.Add , , "Column 1"
ListView1.ColumnHeaders.Add , , "Column 2"
ListView1.ColumnHeaders.Add , , "Column 3"
End Sub
------------------
Mark Sreeves
Analyst Programmer
Mark.Sreeves@Softlab.co.uk
A BMW Group Company