dashboard-devexpress-dot-dashboardwin-dot-dashboardparameterdescriptor-9df15f42.md
Gets or sets the currently selected parameter value.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
public object SelectedValue { get; set; }
Public Property SelectedValue As Object
| Type | Description |
|---|---|
| Object |
A currently selected parameter value.
|
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
string parameterName = GetParameterDataMember(axisPoint.Dimension.DataMember);
dashboardDesigner1.Parameters[parameterName].SelectedValue = axisPoint.Value;
axisPoint = axisPoint.Parent;
{
dDesigner.Parameters[0].SelectedValue = null;
}
how-to-display-pie-chart-others-slice/CS/PieChartOtherSliceExample/Form1.cs#L33
{
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
Dim parameterName As String = GetParameterDataMember(axisPoint.Dimension.DataMember)
dashboardDesigner1.Parameters(parameterName).SelectedValue = axisPoint.Value
axisPoint = axisPoint.Parent
If e.CurrentSelection.Count = 0 Then
dDesigner.Parameters(0).SelectedValue = Nothing
Else
how-to-display-pie-chart-others-slice/VB/PieChartOtherSliceExample/Form1.vb#L28
If Equals(e.DashboardItemName, "rangeFilterDashboardItem1") Then
viewer.Parameters("ParamRangeStart").SelectedValue = e.SelectedRange.Minimum
viewer.Parameters("ParamRangeEnd").SelectedValue = e.SelectedRange.Maximum
See Also
Specify Dashboard Parameter Values in the WinForms Designer
Manage Dashboard Parameters in the WinForms Viewer Control
DashboardParameterDescriptor Class