Back to Devexpress

DashboardItemControlEventArgs.GridControl Property

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

latest3.0 KB
Original Source

DashboardItemControlEventArgs.GridControl Property

Gets an underlying grid control.

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

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

Property Value

TypeDescription
GridControl

A GridControl object that is the grid control.

|

Remarks

Use the GridControl property to access a grid control corresponding to the GridDashboardItem.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GridControl 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-custom-properties/CS/WinForms-Dashboard-Custom-Properties/Modules/GridFixedColumnModule.cs#L39

csharp
void Designer_DashboardItemControlUpdated(object sender, DashboardItemControlEventArgs e) {
    if(e.GridControl != null) {
        GridDashboardItem gridItem = designer.Dashboard.Items[e.DashboardItemName] as GridDashboardItem;

winforms-dashboard-custom-properties/VB/WinForms-Dashboard-Custom-Properties/Modules/GridFixedColumnModule.vb#L39

vb
Private Sub Designer_DashboardItemControlUpdated(ByVal sender As Object, ByVal e As DashboardItemControlEventArgs)
    If e.GridControl IsNot Nothing Then
        Dim gridItem As GridDashboardItem = TryCast(designer.Dashboard.Items(e.DashboardItemName), GridDashboardItem)

See Also

DashboardItemControlEventArgs Class

DashboardItemControlEventArgs Members

DevExpress.DashboardWin Namespace