corelibraries-devexpress-dot-xtrascheduler-dot-appointmentmappinginfo-302275e1.md
Gets or sets the data field to which an appointment’s Appointment.Type property is bound.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
[DefaultValue("")]
public virtual string Type { get; set; }
<DefaultValue("")>
Public Overridable Property Type As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A String value that specifies the name of the bound data field.
|
Use the Type property to bind an appointment’s Appointment.StatusKeyproperty to a data field in the external data source. The data source is specified by the PersistentObjectStorage<T>.DataSource property of the AppointmentStorage.
When you map the Appointment.Type property to the data field, use the field of the int type. The AppointmentType members are enumerated as follows:
Note
This mapping is mandatory if a scheduler is bound to an external data source.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Type property.
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.
winforms-scheduler-gantt-view/CS/dxT183299/Form1.cs#L89
mappings.Status = "Status";
mappings.Type = "EventType";
mappings.PercentComplete = "PercentComplete";
winforms-scheduler-handle-fetchappointments-event/CS/Form1.cs#L63
mappings.Status = "Status";
mappings.Type = "EventType";
mappings.Status = "Status";
mappings.Type = "EventType";
winforms-scheduler-replace-default-command/CS/WindowsFormsApplication1/Form1.cs#L70
mappings.Status = "Status";
mappings.Type = "EventType";
winforms-scheduler-sync-outlook-calendars/CS/SyncWithOutlook/Form1.cs#L59
aptmappings.Status = "Status";
aptmappings.Type = "EventType";
aptmappings.ResourceId = "OwnerId";
winforms-scheduler-gantt-view/VB/dxT183299/Form1.vb#L85
mappings.Status = "Status"
mappings.Type = "EventType"
mappings.PercentComplete = "PercentComplete"
winforms-scheduler-handle-fetchappointments-event/VB/Form1.vb#L66
mappings.Status = "Status"
mappings.Type = "EventType"
' Ppulate the fullDataSource with data items
mappings.Status = "Status"
mappings.Type = "EventType"
schedulerStorage1.Appointments.CustomFieldMappings.Add(New AppointmentCustomFieldMapping("ApptImage1", "Icon1", FieldValueType.Object))
winforms-scheduler-replace-default-command/VB/WindowsFormsApplication1/Form1.vb#L70
mappings.Status = "Status"
mappings.Type = "EventType"
winforms-scheduler-sync-outlook-calendars/VB/SyncWithOutlook/Form1.vb#L60
aptmappings.Status = "Status"
aptmappings.Type = "EventType"
aptmappings.ResourceId = "OwnerId"
See Also