Back to Devexpress

ASPxSchedulerDataInsertingEventArgs Class

aspnet-devexpress-dot-web-dot-aspxscheduler-70e847a4.md

latest2.7 KB
Original Source

ASPxSchedulerDataInsertingEventArgs Class

Provides data for the ASPxSchedulerDataWebControlBase.AppointmentRowInserting event.

Namespace : DevExpress.Web.ASPxScheduler

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

NuGet Package : DevExpress.Web.Scheduler

Declaration

csharp
public class ASPxSchedulerDataInsertingEventArgs :
    CancelEventArgs
vb
Public Class ASPxSchedulerDataInsertingEventArgs
    Inherits CancelEventArgs

ASPxSchedulerDataInsertingEventArgs is the data class for the following events:

Remarks

Handle this event to check the field values via the ASPxSchedulerDataInsertingEventArgs.NewValues property and decide whether the data insertion should be cancelled. To cancel the Insert operation set the Cancel property to true.

If the data provider uses its own mechanism for autoincrementing a key field value, then you should handle the ASPxSchedulerDataWebControlBase.AppointmentRowInserting event to remove this field/value pair from the ASPxSchedulerDataInsertingEventArgs.NewValues collection.

If the data provider autoincrements a key field value, then the KeyFieldValue property should be set to this new value.

Inheritance

Object EventArgs CancelEventArgs ASPxSchedulerDataInsertingEventArgs

See Also

ASPxSchedulerDataInsertingEventArgs Members

DevExpress.Web.ASPxScheduler Namespace