Tab

ASPxCardView.CardInserting Event

Enables you to cancel adding a new card.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public event ASPxDataInsertingEventHandler CardInserting
Public Event CardInserting As ASPxDataInsertingEventHandler

Event Data

The CardInserting event's data class is ASPxDataInsertingEventArgs. 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 Gets a dictionary that contains the new field name/value pairs for the row to be inserted.

Remarks

The CardInserting event occurs when an end-user tries to save the newly created card by clicking the Update command. To cancel the insert operation, set the event parameter's Cancel property to true.

To create a new card, click the New command or call the ASPxCardView.AddNewCard method.

After a new card has been added to the ASPxCardView, the ASPxCardView.CardInserted event is raised.

Examples

The example illustrates how to delete selected cards of the ASPxCardView bound with an in-memory DataSource.

View Example