Skip to main content

How to: Add and Initialize a New Card

In this example, the ASPxCardView.InitNewCard event is handled to initialize the new record’s field values with default values.

The image below shows the result:

ASPxCardView_InitNewCard

protected void ASPxCardView1_InitNewCard(object sender, DevExpress.Web.Data.ASPxDataInitNewRowEventArgs e)
{
    e.NewValues["CategoryName"] = "Seafood";
    e.NewValues["Description"] = "Seafood and fish";
}