DataSource.CreateSourceObject Event

Allows you to set the source object for a newly created appointment.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v21.2.dll


public event CreateSourceObjectEventHandler CreateSourceObject

Event Data

The CreateSourceObject event's data class is CreateSourceObjectEventArgs. The following properties provide information specific to this event:

Property Description
Instance Gets or sets the appointment’s source object.
Item Obsolete. Gets the newly created appointment.
ItemType Returns the type of the created source object.


When a new appointment is created, the scheduler automatically creates an object that represents an appointment in the bound data source and performs an Insert operation to store appointment data. The source object is available using the AppointmentItem.SourceObject property. However, you can create a source object manually by handling the CreateSourceObject event.

See Also