Skip to main content
A newer version of this page is available. .

ColumnView.GetVisibleColumn(Int32) Method

Returns the column displayed at a specific position.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v18.2.dll

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetVisibleColumn(Int32) 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.

See Also