Back to Devexpress

DashboardItemControlEventArgs.PivotGridControl Property

dashboard-devexpress-dot-dashboardwin-dot-dashboarditemcontroleventargs-cee8ca66.md

latest3.7 KB
Original Source

DashboardItemControlEventArgs.PivotGridControl Property

Gets an underlying PivotGridControl.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public PivotGridControl PivotGridControl { get; }
vb
Public ReadOnly Property PivotGridControl As PivotGridControl

Property Value

TypeDescription
PivotGridControl

A PivotGridControl object that is the PivotGridControl.

|

Remarks

Use the PivotGridControl property to access a PivotGridControl corresponding to the PivotDashboardItem.

The following code snippets (auto-collected from DevExpress Examples) contain references to the PivotGridControl 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-access-api-of-underlying-controls/CS/Dashboard_ControlAccess/Form1.cs#L18

csharp
if (e.DashboardItemName == "pivotDashboardItem1") {
    PivotGridControl pivotGridControl = e.PivotGridControl;
    pivotGridControl.CustomCellValue += pivotGridControl_CustomCellValue;

winforms-dashboard-window-calculation-example/CS/WindowCalculationExample/Form1.cs#L72

csharp
{
    if (e.PivotGridControl != null)
        e.PivotGridControl.BestFit();

winforms-dashboard-access-api-of-underlying-controls/VB/Dashboard_ControlAccess/Form1.vb#L19

vb
If e.DashboardItemName = "pivotDashboardItem1" Then
    Dim pivotGridControl As PivotGridControl = e.PivotGridControl
    AddHandler pivotGridControl.CustomCellValue, AddressOf pivotGridControl_CustomCellValue

winforms-dashboard-window-calculation-example/VB/WindowCalculationExample/Form1.vb#L59

vb
Private Sub DashboardViewer1_DashboardItemControlUpdated(ByVal sender As Object, ByVal e As DashboardItemControlEventArgs)
    If e.PivotGridControl IsNot Nothing Then e.PivotGridControl.BestFit()
End Sub

See Also

DashboardItemControlEventArgs Class

DashboardItemControlEventArgs Members

DevExpress.DashboardWin Namespace