Skip to main content

ASPxSchedulerDataWebControlBase.AppointmentRowInserting Event

Fires before appointment data is posted to the data source for insertion.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v24.2.dll

Declaration

public event ASPxSchedulerDataInsertingEventHandler AppointmentRowInserting

Event Data

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

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NewValues Provides access to the collection of modified values for the appointment’s data fields.

Remarks

The AppointmentRowInserting event allows you to prevent data from being posted to the data source. Set the event handler’s Cancel property to true to cancel the data posting.

If the data source table contains an autoincremented ID field, you can use the AppointmentRowInserting event to get the ID field of the appointment’s data before sending it to the data source.

View Example: How to drag a row from ASPxGridView to ASPxScheduler

To prevent the appointment insertion, handle the AppointmentInserting event and set its Cancel evnet argument property to true.

See Also