ColumnView.GetVisibleColumn(Int32) Method
Returns the column displayed at a specific position.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v23.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
Declaration
Parameters
Name | Type | Description |
---|---|---|
visibleIndex | Int32 | An integer value representing the visible index of the desired column. This parameter value corresponds to the GridColumn.VisibleIndex property of columns. |
Returns
Type | Description |
---|---|
GridColumn | A GridColumn object or descendant representing a column displayed at a specific position. null (Nothing in Visual Basic) if there are no columns with the specified visible index. |
Remarks
Alternatively, visible columns can be accessed by their indexes using the ColumnView.VisibleColumns property. This property allows you to access visible columns using indexer notation.