Skip to main content
All docs
V24.1
.NET 6.0+

How to: Display Appointments in a Data Table (Grid List Editor)

  • 2 minutes to read

This article explains how display events in a regular List View grid in XAF ASP.NET Core Blazor and Windows Forms applications.

Note

For the purposes of this article, you can use the MainDemo application installed as a part of the XAF package. The default location of the application is %PUBLIC%\Documents\DevExpress Demos 24.1\Components\XAF.

The MainDemo application uses DevExpress.ExpressApp.Scheduler.Blazor.Editors.SchedulerListEditor and DevExpress.ExpressApp.Scheduler.Win.SchedulerListEditor to display Scheduler in UI. The image below shows the current Scheduler List Editor:

ASP.NET Core Blazor
ASP.NET Core Blazor Scheduler as SchedulerListEditor, DevExpress
Windows Forms
Windows Forms Scheduler as SchedulerListEditor, DevExpress

The instructions below explain how to change the List Editor type.

  1. In the Solution Explorer, expand the MainDemo.Blazor.Server or MainDemo.Win project and double-click the Model.xafml file to open it in the Model Editor.
  2. Depending on the ORM tool used in your application, navigate to one of the following nodes:
    • Views | DevExpress.Persistent.BaseImpl.EF | Event | Event_ListView for Entity Framework Core.
    • Views | DevExpress.Persistent.BaseImpl | Event | Event_ListView for XPO.
  3. Set the IModelListView.EditorType property to a regular List Editor value:
  4. Save the changes and run the application. When you invoke the Calendar List View, it should look like this:

    ASP.NET Core Blazor
    ASP.NET Core Blazor Scheduler as DxGridListEditor, DevExpress
    Windows Forms
    Windows Forms Scheduler as GridListEditor, DevExpress

Tip

You can add an Action that allows users to switch between different List Editors. For more information, refer to the following topic: View Variants Module.