Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

ListView Class

Represents a List View.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v20.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public class ListView :
    ObjectView

Remarks

The ListView class allows you to view or edit an objects collection.

List Views take part in the automatic UI construction, so you do not spend time on ListView objects creation. However, you can influence this process by editing the Application Model‘s Views | <ListView> (LookupListView) node. Via this node, you can specify the type of objects to be represented, the columns to be displayed and, order and visibility of these columns.

If you need to customize a List View in code, you can access it via a Frame.View or ViewController.View property. Use a List View’s ObjectView.ObjectTypeInfo property to specify the type of objects to be represented; the ListView.CollectionSource property - to specify the objects and their properties to be displayed. To perform custom actions when an object in a List View’s editor is double-clicked, handle the ListViewProcessCurrentObjectController.CustomProcessSelectedItem event.

The ObjectView class, which is the base class for the ListView class, has one more descendant - the DetailView class. This class is used to represent an individual object.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ListView class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

See Also