C# Clear all items in ListView

前端 未结 12 1919
我在风中等你
我在风中等你 2020-12-03 13:39

I try to clear my listview but the clear method doesn\'t work:

myListView.Items.Clear();

This doen\'t work. When i put a breakpoint at this

12条回答
  •  旧时难觅i
    2020-12-03 14:00

    The Problem is arising because you are trying to clear the entire list box. Just use listView1.Items.Clear();

提交回复
热议问题