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
What about the following?
ListView lv = new ListView(); while (lv.Items.Count > 1) { //leave the header lv.Items.RemoveAt(1); }