GetSubItems

GetSubItems( _
    ByVal tag As Object) As System.Collections.IEnumerable

Event fired to determine the sub items of a list view item.

Return the strings to display in the remaining columns. This only has an effect if the list is in Details view.


Private Function personListView_GetSubItems(ByVal tag As Object) As System.Collections.IEnumerable
' Display age and occupation in the second and third column.
Dim person As Person = DirectCast(tag, Person)
Dim subItems as New List
subItems.Add(person.Age)
subItems.Add(person.Occupation)
Return subItems
End Function

If you do not implement this event, the remaining columns are not populated in Details view.


Parameters:

ByVal tag As Object

Returns:

System.Collections.IEnumerable