Skip to main content
A newer version of this page is available. .

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.v20.2.dll

NuGet Package: DevExpress.Web.Scheduler

Declaration

public event ASPxSchedulerDataInsertedEventHandler AppointmentRowInserted

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 customize the Edit Appointment Form in the “Shared Resources” scenario

How to display a custom ToolTip when hovering with the mouse over an appointment

How to drag a row from ASPxGridView to ASPxScheduler

Online Demo:

ASPxScheduler - XPO Bound Mode

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentRowInserted event.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also