Using the ListView Control

The ListView control is similar to the ListBox control in that it can display a list of items to the user in a boxlike UI. The ListView control adds additional functionality over the ListBox. In addition to plain text items, the ListView control can display optional images and sub-items that add detail about the item.

The items in a ListView can be displayed in four different views: Details view, LargeIcon view, List view, and SmallIcon view. The ListView control exposes the View property that represents the current view. The View property is of type System.Windows.Forms.View, which is an enumeration. The following list describes the members of the View enumeration and how they affect the ListView control.


Get Microsoft® .NET Compact Framework Kick Start now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.