windowsforms-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-989984be.md
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
[Browsable(false)]
public ColumnView View { get; }
<Browsable(False)>
Public ReadOnly Property View As ColumnView
| Type | Description |
|---|---|
| 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.
_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
{
return SearchColumn.View as GridView;
}
_Item = inplaceEditor;
view = column.View as GridView;
view.CustomDrawColumnHeader += view_CustomDrawColumnHeader;
_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
Private Function GetSearchGridView() As GridView
Return TryCast(SearchColumn.View, GridView)
End Function
_Item = inplaceEditor
view = TryCast(column.View, GridView)
AddHandler view.CustomDrawColumnHeader, AddressOf view_CustomDrawColumnHeader
See Also