Working with a listview the data is entered from Access into a collection. Then it is supposed to populate a listview with this code.
CM is a set to a class of people.
The collection has all of the data but this routine does not populate the listview. Nor does it throw an exception.
Thanks for the help.
CM is a set to a class of people.
Code:
For Each CM In c
sKey = Format(CM.ID, "0000")
With lvwDisplay.Items
Dim mItem As ListViewItem = New ListViewItem
mItem.Text = sKey
mItem.SubItems.Add(IIf(CM.MarriedName = vbNullString, CM.LastName & ", " & CM.FirstName, _
CM.MarriedName & ", " & CM.FirstName & " (" & CM.LastName & ")"))
mItem.SubItems.Add(CM.Address)
mItem.SubItems.Add(IIf(CM.City <> "", CM.City & ", " & CM.State & " " & CM.Zip, vbNullString))
mItem.SubItems.Add(CM.ClassYear)
mItem.SubItems.Add(IIf(CM.Deceased, "D", ""))
End With
Thanks for the help.