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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.