How to: Add and Remove Items with the Windows Forms ListView Control Using the Designer
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.
The following procedure requires a Windows Application project with a form containing a ListView control. For information about setting up such a project, seeand .
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see.
To add or remove items using the designer
Select the ListView control.
In the Properties window, click the Ellipsis () button next to theproperty.
The ListViewItem Collection Editor appears.
To add an item, click the Add button. You can then set properties of the new item, such as theand properties.
To remove an item, select it and click the Remove button.