A newer version of this page is available. Switch to the current version.

SchedulerDataStorage.CreateSourceObject Event

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.dll


public event EventHandler<CreateSourceObjectEventArgs> CreateSourceObject

Event Data

The CreateSourceObject event's data class is DevExpress.XtraScheduler.CreateSourceObjectEventArgs.


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. Use the CreateSourceObjectEventArgs.Item property to obtain the newly created appointment, create a source object and subsequently assign it to the CreateSourceObjectEventArgs.Instance property.

See Also