Problems with a listview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vmrincon

    #1

    Problems with a listview

    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).Che cked = False Then
    lw.Items(i).Rem ove()
    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

    #2
    Re: Problems with a listview

    Where is the data coming from? Can't you filter out the unwanted items as
    you add to the list?

    "Vmrincon" <vmrincon@gmail .comwrote in message
    news:1167805370 .459283.160390@ i12g2000cwa.goo glegroups.com.. .
    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).Che cked = False Then
    lw.Items(i).Rem ove()
    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!
    >

    Comment

    • Vmrincon

      #3
      Re: Problems with a listview

      Thanks but I already solved it!


      TClancey wrote:
      Where is the data coming from? Can't you filter out the unwanted items as
      you add to the list?
      >
      "Vmrincon" <vmrincon@gmail .comwrote in message
      news:1167805370 .459283.160390@ i12g2000cwa.goo glegroups.com.. .
      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).Che cked = False Then
      lw.Items(i).Rem ove()
      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!

      Comment

      Working...