ASPxCardViewSummaryItemCollection.Add(SummaryItemType, String) Method
In This Article
Adds the specified summary item to the collection.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public ASPxCardViewSummaryItem Add(
SummaryItemType summaryType,
string fieldName
)
#Parameters
Name | Type | Description |
---|---|---|
summary |
Summary |
A Summary |
field |
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 ASPx |
#Returns
Type | Description |
---|---|
ASPx |
An ASPx |
#Example
ASPxCardViewSummaryItem totalSummary = new ASPxCardViewSummaryItem();
totalSummary.FieldName = "Price";
totalSummary.SummaryType = SummaryItemType.Min;
totalSummary.ValueDisplayFormat = "c0";
ASPxCardView1.TotalSummary.Add(totalSummary);
See Also