I have a listview and it is not showing any items after I populate it. I set the View prop to Details.
I set the 2 columns in design time columns property.
This the code
Can't figure this out. Any ideas?
I set the 2 columns in design time columns property.
This the code
Code:
If objRdr.HasRows Then
Do While objRdr.Read
lvItem = New ListViewItem(objRdr("RoundDate").ToString)
If objRdr.IsDBNull(1) Then
lvItem.SubItems.Add("")
Else
lvItem.SubItems.Add(objRdr("Competition"))
End If
lstEvents.Items.Add(lvItem)
Loop
End If
Can't figure this out. Any ideas?