Back to Devexpress

ASPxCardViewSummaryItemCollection.Add(SummaryItemType, String) Method

aspnet-devexpress-dot-web-dot-aspxcardviewsummaryitemcollection-dot-add-x28-devexpress-dot-data-dot-summaryitemtype-system-dot-string-x29.md

latest2.4 KB
Original Source

ASPxCardViewSummaryItemCollection.Add(SummaryItemType, String) Method

Adds the specified summary item to the collection.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public ASPxCardViewSummaryItem Add(
    SummaryItemType summaryType,
    string fieldName
)
vb
Public Function Add(
    summaryType As SummaryItemType,
    fieldName As String
) As ASPxCardViewSummaryItem

Parameters

NameTypeDescription
summaryTypeSummaryItemType

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

TypeDescription
ASPxCardViewSummaryItem

An ASPxCardViewSummaryItem object that represents the new summary item.

|

Example

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

See Also

ASPxCardViewSummaryItemCollection Class

ASPxCardViewSummaryItemCollection Members

DevExpress.Web Namespace