Back to Devexpress

Dashboard.CurrencyCultureName Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboard-32345324.md

latest3.6 KB
Original Source

Dashboard.CurrencyCultureName Property

Gets or sets the default currency for the Dashboard.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
[DefaultValue(null)]
public string CurrencyCultureName { get; set; }
vb
<DefaultValue(Nothing)>
Public Property CurrencyCultureName As String

Property Value

TypeDefaultDescription
Stringnull

A String that specifies the name of a culture that defines the currency format settings.

|

Remarks

The CurrencyCultureName property is in effect for data items whose DataItemNumericFormat.CurrencyCultureName property is set to null ( Nothing in Visual Basic).

By default, the CurrencyCultureName property is explicitly set to the culture of the current thread (the thread that runs the Designer).

The CurrencyCultureName property can also be set to null , which means that when the dashboard is presented in the Viewer, the culture of the thread that runs the Viewer is used for all data items whose DataItemNumericFormat.CurrencyCultureName property is set to null.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CurrencyCultureName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winviewer-how-to-create-custom-card-layout-template/CS/ViewerForm.cs#L19

csharp
dashboard.Title.Text = "Card Custom Template";
dashboard.CurrencyCultureName = "en-US";

winviewer-how-to-create-custom-card-layout-template/VB/ViewerForm.vb#L16

vb
dashboard.Title.Text = "Card Custom Template"
dashboard.CurrencyCultureName = "en-US"
Dim dataSource As New DashboardObjectDataSource()

See Also

CurrencyCultureName

Formatting Data in WinForms Dashboard Designer

Dashboard Class

Dashboard Members

DevExpress.DashboardCommon Namespace