Clearing a List View

  • Thread starter Thread starter Patrick De Ridder
  • Start date Start date
P

Patrick De Ridder

I use a list view to display the outcomes of queries.
Inbetween queries I clear the lis view.

The Clear command, also gets rid of columns, so
that is of no use.

Close, new, Show does the job but then you don't
get a smooth action, in that the display "flickers".

Is there a better way?

Many thanks,
 
Jeroen Smits said:
Not only the ListView iteself has a Clear method, but also the Items
collection. Use that one and only the items get cleared.

listview.Items.Clear();

Many thanks, I'll give it a try,
 
Back
Top