ListView Control

This control displays items using one of four different views: large (standard) icons, small icons, list, and report. You can arrange items into columns with or without column headings, and you can display accompanying icons and text.

Library Name

MSCELISTVIEWLibCtl

DLL Name

Mscelistview.dll

The ListView control supports the following properties:

ColumnHeaders HideColumnHeaders SelectedItem
FontBold HideSelection SmallIcons
FontItalic Icons Sorted (ListView)
FontName LabelEdit SortKey
FontSize LabelWrap SortOrder
FontStrikethrough ListItems View
FontUnderline MultiSelect (ListView)  

The ListView control supports the following methods:

The ListView control supports the following events:

Remarks

The ListView control contains ListItem and ColumnHeader objects. A ListItem object defines the characteristics of items in the ListView control.

You can choose to display column headings in the ListView control using the HideColumnHeaders property. Column headings can be added at run time. At run time, use the Add method to add a ColumnHeader object to the ColumnHeaders collection.

The View property determines which view the control uses to display the items in a list. The LabelWrap property determines whether the labels associated with items in the list wrap to more than one line.