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

GridView.MakeColumnVisible(GridColumn) Method

Makes the specified column visible on screen.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

public virtual void MakeColumnVisible(
    GridColumn column
)

Parameters

Name Type Description
column GridColumn

A GridColumn object (or descendant) representing the column that should be made visible.

Remarks

The MakeColumnVisible method does nothing in the following cases:

In other cases, the method scrolls the View the minimum amount required to make the column completely visible on screen.

Note: when assigning a column to the ColumnView.FocusedColumn property, the specified column is automatically made visible using the MakeColumnVisible method. Thus, if you need to make a column visible and focus it, simply assign the desired column to the ColumnView.FocusedColumn property. The MakeColumnVisible method should be used when you don’t need to move focus to the target column.

Note

Detail pattern Views do not contain data and they are never displayed within XtraGrid. So, the MakeColumnVisible member must not be invoked for these Views. The MakeColumnVisible member can only be used with real Views that are displayed within the Grid Control. The real Views with which an end-user interacts at runtime can be accessed using the following methods.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MakeColumnVisible(GridColumn) 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