Skip to main content

ASPxCardViewCardLayoutCreatedEventArgs.IsEditingCard Property

Gets whether the card is in edit mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web


public bool IsEditingCard { get; }

Property Value

Type Description

true if the card is in edit mode; otherwise, false.


The following example illustrates how to use the FindLayoutItemByColumn(String) method to find layout items that belong to the specified columns and then change their visibility and column span.

protected void ASPxCardView1_CardLayoutCreated(object sender, ASPxCardViewCardLayoutCreatedEventArgs e) {
    // Applies the card layout to the Edit Form only
    if(e.IsEditingCard) {
        ASPxCardView cardView = sender as ASPxCardView;
        if(cardView.IsNewCardEditing) {
            LayoutItem itemOrderID = e.FindLayoutItemByColumn(cardView.KeyFieldName);
            itemOrderID.ClientVisible = false;
            LayoutItem itemProductName = e.FindLayoutItemByColumn("ProductName");
            itemProductName.ColumnSpan = 2;
See Also