Problems with a listview

  • Thread starter Thread starter Vmrincon
  • Start date Start date
V

Vmrincon

Hi everybody!

I am working with a controltab that shows several listviews in its
respective tabs. The problem is that in this listviews some elements
are checked in and some not (I mean rows) and I would like to show only
those that are checked in.

My idea was to remove the row from the listview with the method
remove(), I mean something like...

If lw.Items(i).Checked = False Then
lw.Items(i).Remove()
lw.Refresh()

But the problem is that when I try to do it I get a System Out Of
Memory Error.

Does anybody know why this is happening? How could I do to get the
solution that I want?

Thanks a lot!
 
Where is the data coming from? Can't you filter out the unwanted items as
you add to the list?
 
Back
Top