Groups | Blog | Home
all groups > visual c > march 2007 >

visual c : Erasing a List View's items, without erasing the columns


Miesha.James NO[at]SPAM gmail.com
3/31/2007 6:12:47 AM
Hi,

I have a list view that will be update dynamically when new
information is received. I parse through the information and call the
update function to clear the current items that are in the list and
print out the new data. My problem is that I dont see a function that
will only clear out the items and subitems and not the columns. Does
anyone know of a function that does that?

Thanks.

MJ
David Lowndes
3/31/2007 9:05:18 PM
[quoted text, click to view]

AFAIK you don't need one because deleting items does not delete the
columns of the list control. Why do you think it does?

Ben Voigt
4/2/2007 2:13:05 PM

[quoted text, click to view]

It might if you are data-bound and remove the DataSource.

[quoted text, click to view]

AddThis Social Bookmark Button