Back to Devexpress

DashboardItemVisualInteractivityBaseEventArgs.DashboardItemName Property

dashboard-devexpress-dot-dashboardcommon-dot-dashboarditemvisualinteractivitybaseeventargs.md

latest3.9 KB
Original Source

DashboardItemVisualInteractivityBaseEventArgs.DashboardItemName Property

Gets the component name of the dashboard item for which the event was raised.

Namespace : DevExpress.DashboardCommon

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

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public string DashboardItemName { get; }
vb
Public ReadOnly Property DashboardItemName As String

Property Value

TypeDescription
String

A String that is the component name of the dashboard item.

|

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

winforms-dashboard-add-custom-interactivity-to-dashboard/CS/Dashboard_CustomVisualInteractivity/Form1.cs#L25

csharp
DashboardItemVisualInteractivityEventArgs e) {
if (e.DashboardItemName == "gridDashboardItem1") {
    e.SelectionMode = DashboardSelectionMode.Multiple;

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

csharp
{
    if (e.DashboardItemName == "gridDashboardItem1")
    {

winforms-dashboard-add-custom-interactivity-to-dashboard/VB/Dashboard_CustomVisualInteractivity/Form1.vb#L25

vb
Private Sub dashboardViewer1_DashboardItemVisualInteractivity(ByVal sender As Object, ByVal e As DashboardItemVisualInteractivityEventArgs)
    If e.DashboardItemName = "gridDashboardItem1" Then
        e.SelectionMode = DashboardSelectionMode.Multiple

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

vb
Private Sub DashboardDesigner1_DashboardItemVisualInteractivity(ByVal sender As Object, ByVal e As DashboardItemVisualInteractivityEventArgs)
    If Equals(e.DashboardItemName, "gridDashboardItem1") Then
        e.SelectionMode = DashboardSelectionMode.Single

See Also

DashboardItemVisualInteractivityBaseEventArgs Class

DashboardItemVisualInteractivityBaseEventArgs Members

DevExpress.DashboardCommon Namespace