Tab

ASPxCardView.InitNewCard Event

Enables you to initialize added cards.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public event ASPxDataInitNewRowEventHandler InitNewCard

Event Data

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

Property Description
NewValues Gets a dictionary that contains the new field name/value pairs for the new row.

Remarks

The InitNewCard event is raised when a new card is added to the ASPxCardView. This occurs when:

Use the event parameter’s NewValues property to specify the values in the new card. Note that you can initialize values only for those columns that are visible within the Edit Form. To specify values of hidden columns, handle the ASPxCardView.CardInserting event.

Example

In this example, the ASPxCardVie