How to: Add and Remove Items with the Windows Forms ListView Control
.NET Framework 3.0
The process of adding an item to a Windows Formscontrol consists primarily of specifying the item and assigning properties to it. Adding or removing list items can be done at any time.
To add items programmatically
Use themethod of the property.
To remove items programmatically
Use theor method of the Items property. The RemoveAt method removes a single item; the Clear method removes all items from the list.
// Removes the first item in the list. listView1.Items.RemoveAt(0); // Clears all the items. listView1.Items.Clear();