|
-
Feb 16th, 2002, 05:48 AM
#1
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!
-
Feb 16th, 2002, 05:59 AM
#2
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.
-
Feb 16th, 2002, 05:59 AM
#3
PowerPoster
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.

-
Feb 16th, 2002, 06:08 AM
#4
Actually I'm afraid neither my solution nor Arcs solution does the job. >.<
Any thoughts?
-
Feb 16th, 2002, 06:32 AM
#5
PowerPoster
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.

-
Feb 16th, 2002, 04:21 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|