Back to Devexpress

GridContext.GetControlColumn(GridColumnBase) Method

dashboard-devexpress-dot-dashboardwin-dot-gridcontext-dot-getcontrolcolumn-x28-devexpress-dot-dashboardcommon-dot-gridcolumnbase-x29.md

latest3.5 KB
Original Source

GridContext.GetControlColumn(GridColumnBase) Method

Returns a GridColumn object that corresponds to the specified GridColumnBase descendant (a data item container from the Columns section).

Namespace : DevExpress.DashboardWin

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

NuGet Package : DevExpress.Win.Dashboard

Declaration

csharp
public GridColumn GetControlColumn(
    GridColumnBase column
)
vb
Public Function GetControlColumn(
    column As GridColumnBase
) As GridColumn

Parameters

NameTypeDescription
columnGridColumnBase

A GridColumnBase descendant for which the corresponding control’s column is returned.

|

Returns

TypeDescription
GridColumn

A GridColumn object that corresponds to the specified dashboard item’s column.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetControlColumn(GridColumnBase) method.

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#L45

csharp
if(!string.IsNullOrEmpty(customProperty)) {
    GridColumn gridColumn = e.GridContext.GetControlColumn(itemColumn);
    if(gridColumn != null) {

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

vb
If Not String.IsNullOrEmpty(customProperty) Then
    Dim gridColumn As GridColumn = e.GridContext.GetControlColumn(itemColumn)
    If gridColumn IsNot Nothing Then

See Also

GridContext Class

GridContext Members

DevExpress.DashboardWin Namespace