Tab

ASPxCardViewSummaryItemCollection.Add(SummaryItemType, String) Method

Adds the specified summary item to the collection.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public ASPxCardViewSummaryItem Add(
    SummaryItemType summaryType,
    string fieldName
)

Parameters

Name Type Description
summaryType SummaryItemType

A SummaryItemType enumeration value that specifies the aggregate function type. This value is assigned to the ASPxSummaryItemBase.SummaryType property.

fieldName String

A String value that specifies the name of the data source field whose values are used for summary calculation. This value is assigned to the ASPxSummaryItemBase.FieldName property.

Returns

Type Description
ASPxCardViewSummaryItem

An ASPxCardViewSummaryItem object that represents the new summary item.

Example

ASPxCardViewSummaryItem totalSummary = new ASPxCardViewSummaryItem();
totalSummary.FieldName = "Price";
totalSummary.SummaryType = SummaryItemType.Min;
totalSummary.ValueDisplayFormat = "c0"; 
ASPxCardView1.TotalSummary.Add(totalSummary);
See Also