[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
   [Expand]Product Information
    Getting Started
   [Expand]Scheduler Elements and Structure
   [Collapse]Data Binding
    [Expand]Data Sources
      Appointment Mappings
      Resource Mappings
      Dependency Mappings
      Label Mappings
      Status Mappings
      How to: Set Mappings
      Custom Fields
      Mapping Converters
     FetchAppointments Event - Handling Large Datasets
   [Expand]Import and Export
   [Expand]Time Zones
   [Expand]Design-Time Features
   [Expand]End-User Capabilities
   [Expand]Member Tables
   [Expand]Visual Elements
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

How to: Set Mappings

Expanded How to Set Mappings at Design Time

At design time, you can run a Mappings Wizard to establish mappings for appointments and resources. Wizards can generate mappings automatically using the algorithm based on the field name and type. However, you are advised to check autogenerated mappings to ensure that they are correct, because incorrect mappings may result in obscure errors that are difficult to trace.

The Mappings Wizard for appointments is shown in the following image:

Expanded How to Set Mappings in Code

Provide field mappings in code using the AppointmentStorageBase.Mappings and ResourceStorage.Mappings properties. Specify the AppointmentDependencyStorage.Mappings if you plan to use the Gantt View.

You can define any number of custom fields for your specific purpose, and map them to the custom properties via the AppointmentStorage.CustomFieldMappings, ResourceStorage.CustomFieldMappings and AppointmentDependencyStorage.CustomFieldMappings properties.

The following code snippet maps the data source containing the "AllDay", "EventDescription", "EndDate", "Label", "Location", "RecurrenceInformation", "Reminder", "StartDate", "Status", "Subject", "AppointmentType", "ResourceIDs" and "CustomField1" fields to the corresponding properties and custom fields of the appointment.

Is this topic helpful?​​​​​​​