Results 1 to 6 of 6

Thread: Clearing out all data in a listview control

  1. #1
    nookta
    Guest

    Clearing out all data in a listview control

    Just like the subject says, I'm stuck trying to clear out all the data from a listview control. I'm sure it should be something quick and easy, but I'm not finding it.

    Thanks!

  2. #2
    nookta
    Guest

    Cool

    Well I took another peek and figured it out. In my case the code is lstGrid.ColumnHeaders.Clear
    Just in case someone else is wondering.

  3. #3
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    listview1.ListItems.Clear
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  4. #4
    nookta
    Guest
    Actually I'm afraid neither my solution nor Arcs solution does the job. >.<
    Any thoughts?

  5. #5
    PowerPoster Arc's Avatar
    Join Date
    Sep 2000
    Location
    Under my rock
    Posts
    2,336
    What do you mean it doesnt work... Ofcourse it works.

    Listview1.listitems.clear clears all the items in your listview.....
    -We have enough youth. How about a fountain of "Smart"?
    -If you can read this, thank a teacher....and since it's in English, thank a soldier.


  6. #6
    nookta
    Guest
    lol! Of course it works. Silly me, I probably just forgot to change the object name when I tried it the first time. I'm set now though. Thanks Arc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width