ASPxSchedulerDataWebControlBase.AppointmentRowInserted Event
Fires after a new record containing appointment information is inserted into the data source.
Namespace: DevExpress.Web.ASPxScheduler
Assembly: DevExpress.Web.ASPxScheduler.v24.1.dll
NuGet Package: DevExpress.Web.Scheduler
Declaration
Event Data
The AppointmentRowInserted event's data class is ASPxSchedulerDataInsertedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
AffectedRecords | Gets the number of modified records. Inherited from ASPxSchedulerDataBaseUpdatedEventArgs. |
Exception | Gets the exception that was raised during the data operation. Inherited from ASPxSchedulerDataBaseUpdatedEventArgs. |
ExceptionHandled | Gets or sets a value indicating whether an exception that was raised during the data operation was handled in the event handler. Inherited from ASPxSchedulerDataBaseUpdatedEventArgs. |
KeyFieldValue | Gets or sets the value of the key field for the appointment’s data record. |
NewValues | Provides access to the collection of values for the appointment’s data fields. |
Remarks
Use the AppointmentRowInserted event to perform actions immediately after the data for a new appointment are inserted into the data source. If the data table contains an autoincremented field, you can handle this event to assign an ID of the new record, obtained by querying the data source, to the appointment’s ID field (e.KeyFieldValue property).
Note
Online Resources Refer to the following online resources to get more info about the AppointmentRowInserted event functionality.
Online Examples:
How to drag a row from ASPxGridView to ASPxScheduler
Online Demo: