Skip to main content
A newer version of this page is available. .

DxSpinEdit<T>.DisplayFormat Property

Specifies the pattern used to format the Spin Edit’s display value when the editor is not focused.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue("")]
[Parameter]
public string DisplayFormat { get; set; }

Property Value

Type Default Description
String String.Empty

The format pattern.

Remarks

Use the DisplayFormat property to format the Spin Edit’s display value when the editor is not focused. See the Standard Numeric Format Strings and Custom Numeric Format Strings help topics for more information. The following example demonstrates how to apply the currency format: Razor <DxSpinEdit @bind-Value="@DecimalValue" DisplayFormat="C"></DxSpinEdit> @code { Decimal DecimalValue { get; set; } = 320.5m; } SpinEdit DisplayFormat Run Demo: Spin Edit - Display Format \

See Also