Back to Devexpress

DashboardParameterDescriptor.SelectedValue Property

dashboard-devexpress-dot-dashboardwin-dot-dashboardparameterdescriptor-9df15f42.md

latest4.8 KB
Original Source

DashboardParameterDescriptor.SelectedValue Property

Gets or sets the currently selected parameter value.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public object SelectedValue { get; set; }
vb
Public Property SelectedValue As Object

Property Value

TypeDescription
Object

A currently selected parameter value.

|

Remarks

Use the DashboardParameterDescriptor.SelectedValues property to obtain possible parameter values.

The following code snippets (auto-collected from DevExpress Examples) contain references to the SelectedValue 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.

win-designer-pivot-as-master-filter/CS/DesignerSample/Form1.cs#L62

csharp
string parameterName = GetParameterDataMember(axisPoint.Dimension.DataMember);
dashboardDesigner1.Parameters[parameterName].SelectedValue = axisPoint.Value;
axisPoint = axisPoint.Parent;

winforms-dashboard-designer-custom-interactivity-in-tab-pages/CS/CustomInteractivityExample/Form1.cs#L48

csharp
{
    dDesigner.Parameters[0].SelectedValue = null;
}

how-to-display-pie-chart-others-slice/CS/PieChartOtherSliceExample/Form1.cs#L33

csharp
{
    viewer.Parameters["ParamRangeStart"].SelectedValue = e.SelectedRange.Minimum;
    viewer.Parameters["ParamRangeEnd"].SelectedValue = e.SelectedRange.Maximum;

win-designer-pivot-as-master-filter/VB/DesignerSample/Form1.vb#L64

vb
Dim parameterName As String = GetParameterDataMember(axisPoint.Dimension.DataMember)
dashboardDesigner1.Parameters(parameterName).SelectedValue = axisPoint.Value
axisPoint = axisPoint.Parent

winforms-dashboard-designer-custom-interactivity-in-tab-pages/VB/CustomInteractivityExample/Form1.vb#L42

vb
If e.CurrentSelection.Count = 0 Then
    dDesigner.Parameters(0).SelectedValue = Nothing
Else

how-to-display-pie-chart-others-slice/VB/PieChartOtherSliceExample/Form1.vb#L28

vb
If Equals(e.DashboardItemName, "rangeFilterDashboardItem1") Then
    viewer.Parameters("ParamRangeStart").SelectedValue = e.SelectedRange.Minimum
    viewer.Parameters("ParamRangeEnd").SelectedValue = e.SelectedRange.Maximum

See Also

SelectedValues

Specify Dashboard Parameter Values in the WinForms Designer

Manage Dashboard Parameters in the WinForms Viewer Control

DashboardParameterDescriptor Class

DashboardParameterDescriptor Members

DevExpress.DashboardWin Namespace