windowsforms-120548-controls-and-libraries-scheduler-data-binding-mappings-status-mappings.md
The table below lists mappings for Statuses.
|
Name
|
Type
|
Required?
|
Description
| | --- | --- | --- | --- | |
|
Object (any type)
|
Yes
|
The unique Status ID. Specifies the UserInterfaceObject.Id property value.
| |
|
See description
|
No
|
A brush or color that specifies the Status appearance. Specifies the AppointmentStatus.Brush property value. The SchedulerDataStorage.Statuses.BrushSaving property value should correspond to the Brush field’s value type.
OLE_Color values.| |
|
String
|
No
|
The primary Status name. Specifies the UserInterfaceObject.DisplayName property value. Displayed in the Edit Appointment dialog.
| |
|
String
|
No
|
The secondary Status name. Specifies the UserInterfaceObject.MenuCaption property value. Displayed in the “Show Time As” appointment context menu item.
You can map this and the DisplayName properties to the same data source field.
|
The following error can occur if the SchedulerDataStorage.Statuses.BrushSaving property is set incorrectly:
DevExpress.XtraScheduler.Internal.ActualMappingException
HResult=0x80131500
Message=Error in the Brush mapping
...
Inner Exception 1:
InvalidCastException: Unable to cast object of type 'System.Drawing.SolidBrush' to type 'System.IConvertible'.
Set the SchedulerDataStorage.Statuses.BrushSaving property to StatusMappingInfo.Brush.