Tab

ASPxSummaryItemBase.ValueDisplayFormat Property

Gets or sets the pattern specifying the display format for the calculated summary value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

[DefaultValue("")]
public string ValueDisplayFormat { get; set; }
<DefaultValue("")>
Public Property ValueDisplayFormat As String

Property Value

Type Default Description
String

String.Empty

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 ValueDisplayFormat property's value is ignored if the ASPxSummaryItemBase.DisplayFormat is explicitly defined.

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>"/>
See Also