ColumnView.GetVisibleColumn(Int32) Method

Returns the column displayed at a specific position.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public virtual GridColumn GetVisibleColumn(
    int visibleIndex
)
Public Overridable Function GetVisibleColumn(
    visibleIndex As Integer
) As GridColumn

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