O'Reilly logo

Microsoft® .NET Compact Framework Kick Start by Ronnie Yates, Erik Rubin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Details

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required