Groups | Blog | Home
all groups > vb.net > january 2007 >

vb.net : Problems with a listview


Vmrincon
1/2/2007 10:22:50 PM
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!
TClancey
1/4/2007 2:26:32 PM
Where is the data coming from? Can't you filter out the unwanted items as
you add to the list?

[quoted text, click to view]

Vmrincon
1/8/2007 5:53:29 AM
Thanks but I already solved it!


[quoted text, click to view]
AddThis Social Bookmark Button