Back to Devexpress

ListView Class

expressappframework-devexpress-dot-expressapp-16bd5b78.md

latest5.5 KB
Original Source

ListView Class

A List View.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public class ListView :
    ObjectView
vb
Public Class ListView
    Inherits ObjectView

The following members return ListView objects:

Remarks

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

A List View in a WinForms application

A List View in a Blazor application

List Views take part in the automatic UI construction, so you do not spend time on ListView objects creation.

To influence this process, edit the Application Model‘s Views | <ListView> ( LookupListView ) node. In this node, you can specify the following:

  • Type of objects to be displayed
  • Columns to be displayed
  • Order and visibility of the columns

To customize a List View in code, use either of the following properties:

To perform custom actions when a user selects an object in a List View’s editor, handle the ListViewProcessCurrentObjectController.CustomProcessSelectedItem event.

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

View Example: XAF - How to show filter dialog before a List View

Inheritance

Object View CompositeView ObjectView ListView

Extension Methods

CustomizeViewItemControl(Controller, Action<ViewItem>)

CustomizeViewItemControl<T>(Controller, Action<T>)

CustomizeViewItemControl(Controller, Action<ViewItem>, String[])

CustomizeViewItemControl<T>(Controller, Action<T>, String[])

See Also

ListView Members

Views

DevExpress.ExpressApp Namespace