Back to Devexpress

GridColumn.View Property

windowsforms-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-989984be.md

latest4.4 KB
Original Source

GridColumn.View Property

Gets the View that owns the column.

Namespace : DevExpress.XtraGrid.Columns

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public ColumnView View { get; }
vb
<Browsable(False)>
Public ReadOnly Property View As ColumnView

Property Value

TypeDescription
ColumnView

A ColumnView descendant representing the View that owns the column.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the View 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-grid-display-colored-progress-bars/CS/ColoredProgressBar/CustomPaintedProgressBarHelper.cs#L12

csharp
_Column = column;
_View = _Column.View as GridView;
_View.CustomDrawCell += new DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(View_CustomDrawCell);

winforms-grid-find-row-by-display-text/CS/WindowsApplication1/GridViewSearch.cs#L43

csharp
{
    return SearchColumn.View as GridView;
}

winforms-grid-display-editors-in-columns-headers/CS/WindowsApplication1/InplaceEditorHelper/ColumnInplaceEditorHelper.cs#L28

csharp
_Item = inplaceEditor;
view = column.View as GridView;
view.CustomDrawColumnHeader += view_CustomDrawColumnHeader;

winforms-grid-display-colored-progress-bars/VB/ColoredProgressBar/CustomPaintedProgressBarHelper.vb#L16

vb
_Column = column
_View = TryCast(_Column.View, GridView)
AddHandler _View.CustomDrawCell, New DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventHandler(AddressOf View_CustomDrawCell)

winforms-grid-find-row-by-display-text/VB/WindowsApplication1/GridViewSearch.vb#L48

vb
Private Function GetSearchGridView() As GridView
    Return TryCast(SearchColumn.View, GridView)
End Function

winforms-grid-display-editors-in-columns-headers/VB/InplaceEditorHelper/ColumnInplaceEditorHelper.vb#L26

vb
_Item = inplaceEditor
view = TryCast(column.View, GridView)
AddHandler view.CustomDrawColumnHeader, AddressOf view_CustomDrawColumnHeader

See Also

View

GridColumn Class

GridColumn Members

DevExpress.XtraGrid.Columns Namespace