Allows you to set the source object for a newly created appointment.
public event EventHandler<CreateSourceObjectEventArgs> CreateSourceObject
Public Event CreateSourceObject As EventHandler(Of CreateSourceObjectEventArgs)
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.