Skip to main content
A newer version of this page is available. .

DataSource.CreateSourceObject Event

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

Namespace: DevExpress.Xpf.Scheduling

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

Declaration

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

Remarks

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