-
Thanks for the reply to my earlier question, but now I'm faced with the problem of adding data to a list view. I'm putting together a database program and want to have a detailed list view, but how do I add data to the colums? I've looked at all the options and the code directly, but can't figure out how.
Thanks in advance.
-
Have you looked to the help file? There is code on how to do this (atleast in VB4)
-
http://forums.vb-world.net/showthrea...threadid=38229
td.
(remember there is a search engine on these boards)
-
Code:
' Making ColumnHeaders en settings
With ListView1
.View = lvwReport
.ColumnHeaders.Add , "COL01", "Name", 2000
.ColumnHeaders.Add , "COL02", "Lastname", 3000
.FullRowSelect = True
End With
' Placing items
With ListView1
.ListItems.Add , "ITEM01", "Kayoca"
.ListItems.Item(.ListItems.Count).ListSubItems.Add , "CHLD01", "Mortation"
End With