The event handler receives an argument of type PersistentObjectCancelEventArgs containing data related to this event.
The following
PersistentObjectCancelEventArgs properties provide information specific to this event.
Property |
Description |
Cancel |
Gets or sets whether to cancel the operation.
|
The AppointmentChanging event is raised when changing an appointment's property. The appointment whose property is changed is identified by the event parameter's DevExpress.XtraScheduler.PersistentObjectEventArgs.Object property. Set the DevExpress.XtraScheduler.PersistentObjectCancelEventArgs.Cancel to true to roll back changes and cancel the operation.
NoteDo not modify the appointment's data source or data binding within this event handler. It results in the current appointment being disposed of, and consequently, an unhandled exception occurs.