Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Clear listView except View C#

$
0
0

Hi,

I have a listView with results of a scan. I've used three culomns in the listView. 

When I press the button 'Clear Items' (button 5) I want that only the results will be cleared, not the columns.

My code is:

private void button5_Click(object sender, EventArgs e)
        {
            listView1.Clear();
        }

Can anyone help me?


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>