ASPxSummaryItemBase.ValueDisplayFormat Property
Gets or sets the pattern specifying the display format for the calculated summary value.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
String | String. |
A String value that specifies the format pattern. |
#Remarks
Use the ValueDisplayFormat property to format the calculated summary value.
The summary value pattern can include static text plus a predefined placeholder. The {0} character sequence is the placeholder for the calculated summary value.
Note
The Value
#Example
To display currency values, you can set the ValueDisplayFormat property to ‘{0:c2}’. If the summary value is 100 and the summary type is Min, its formatted equivalent will be ‘Min= $100.00’.
<dx:ASPxCardViewSummaryItem FieldName="Total" SummaryType="Sum" ValueDisplayFormat="<b>{0:c}</b>"/>