Back to Devexpress

DashboardDataLoadingEventArgs.Parameters Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboarddataloadingeventargs-a296aa6d.md

latest2.3 KB
Original Source

DashboardDataLoadingEventArgs.Parameters Property

Provides access to dashboard parameters required to modify your data query.

Namespace : DevExpress.DashboardCommon

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

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public IEnumerable<IParameter> Parameters { get; }
vb
Public ReadOnly Property Parameters As IEnumerable(Of IParameter)

Property Value

TypeDescription
IEnumerable<IParameter>

A collection of dashboard parameters.

|

Remarks

When the a new parameter is added to the dashboard or a parameter’s value is changed, the Dashboard.DataLoading event occurs. The Parameters property allows obtaining the current parameter values.

The IParameter object has the Name property that is the parameter’s name and the Value property containing the parameter’s value.

To obtain a current value of the “Parameter1” dashboard parameter, use the following code:

csharp
var parameterValue = e.Parameters.FirstOrDefault(p => p.Name == "Parameter1")?.Value;
vb
Dim parameterValue = e.Parameters.FirstOrDefault(Function(p) p.Name = "Parameter1")?.Value

See Also

Dashboard Parameters in Windows Forms

DashboardDataLoadingEventArgs Class

DashboardDataLoadingEventArgs Members

DevExpress.DashboardCommon Namespace