
ListView: Remove items *AND* rows???
Can anyone tell me how to *reliably* empty a ListView control of ALL its
items.
I've tried "clear" and I've tried looping through each item and removing
it, as in:
For i = 1 To lvMyListView.ListItems.Count
Me.lvMyListView.ListItems.Remove (1)
Next i
... I keep ending up with a ListView which contains blank rows where the
items used to be. In other words, the text is being removed, but not
the rows themselves. As a result, when I re-fill the listbox from a
recordset, some ListView rows contain the proper recordset information,
but beneath those rows is a series of blank rows.
What the heck am I doing wrong?