How to clear data from list view in c#

前端 未结 8 822
一个人的身影
一个人的身影 2021-01-07 08:32

I have a button \"Show data\". When click it, data will display in list view. But I want to clear it and then click \"Show data\" again to display new data. Because I don\'t

8条回答
  •  没有蜡笔的小新
    2021-01-07 09:07

    ListView.Clear Method removes all items and columns from the control.

    The following are some articles that may help you working with ListView and DataGridView controls:

    ListView @ C# Online.Net

    Working with Data—Using the DataGridView

提交回复
热议问题