Back to Devexpress

DashboardItemState.DrillDownValues Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboarditemstate-4b11d7f2.md

latest3.6 KB
Original Source

DashboardItemState.DrillDownValues Property

Gets or sets values for the drill-down hierarchy.

Namespace : DevExpress.DashboardCommon

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

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public List<object> DrillDownValues { get; set; }
vb
Public Property DrillDownValues As List(Of Object)

Property Value

TypeDescription
List<Object>

A list of objects that specify values for the drill-down hierarchy.

|

Remarks

The following code snippet shows how to specify a drill-down value for a Grid dashboard item and add it to the entire dashboard state (DashboardState)

csharp
public DashboardState CreateDashboardState() {
  DashboardState state = new DashboardState();
    state.Items.Add(new DashboardItemState("gridDashboardItem1") {
      DrillDownValues = new List<object>() { "Seafood" }
  });
  return state;
}
vb
Public Function CreateDashboardState() As DashboardState
  Dim state As New DashboardState()
    state.Items.Add(New DashboardItemState("gridDashboardItem1") With {.DrillDownValues = New List(Of Object) (New Object() {"Seafood"})})
  Return state
End Function

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DrillDownValues 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.

wpf-dashboard-viewer-DashboardStateChanged-event/CS/WPF-DashboardStateChanged-Event/MainWindow.xaml.cs#L24

csharp
if( itemState.DrillDownValues.Count != 0) {
    message += "\n" + "Filter Drill-Down:" + " " + string.Join("," , itemState.DrillDownValues);
}

wpf-dashboard-viewer-DashboardStateChanged-event/VB/WPF-DashboardStateChanged-Event/MainWindow.xaml.vb#L26

vb
If itemState.DrillDownValues.Count <> 0 Then
    message += Microsoft.VisualBasic.Constants.vbLf & "Filter Drill-Down:" & " " & String.Join(",", itemState.DrillDownValues)
End If

See Also

DashboardItemState Class

DashboardItemState Members

DevExpress.DashboardCommon Namespace