dashboard-devexpress-dot-dashboardwin-dot-dashboarditemcontroleventargs-cee8ca66.md
Gets an underlying PivotGridControl.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
public PivotGridControl PivotGridControl { get; }
Public ReadOnly Property PivotGridControl As PivotGridControl
| Type | Description |
|---|---|
| PivotGridControl |
A PivotGridControl object that is the PivotGridControl.
|
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
if (e.DashboardItemName == "pivotDashboardItem1") {
PivotGridControl pivotGridControl = e.PivotGridControl;
pivotGridControl.CustomCellValue += pivotGridControl_CustomCellValue;
winforms-dashboard-window-calculation-example/CS/WindowCalculationExample/Form1.cs#L72
{
if (e.PivotGridControl != null)
e.PivotGridControl.BestFit();
winforms-dashboard-access-api-of-underlying-controls/VB/Dashboard_ControlAccess/Form1.vb#L19
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
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