dashboard-devexpress-dot-dashboardwin-dot-dashboarditemcontroleventargs.md
Gets an underlying grid control.
Namespace : DevExpress.DashboardWin
Assembly : DevExpress.Dashboard.v25.2.Win.dll
NuGet Package : DevExpress.Win.Dashboard
public GridControl GridControl { get; }
Public ReadOnly Property GridControl As GridControl
| Type | Description |
|---|---|
| GridControl |
A GridControl object that is the grid control.
|
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.
void Designer_DashboardItemControlUpdated(object sender, DashboardItemControlEventArgs e) {
if(e.GridControl != null) {
GridDashboardItem gridItem = designer.Dashboard.Items[e.DashboardItemName] as GridDashboardItem;
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