Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ColumnView.GetVisibleColumn(Int32) Method

Returns the column displayed at a specific position.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

public virtual GridColumn GetVisibleColumn(
    int visibleIndex
)

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

See Also