Back to Devexpress

GridView.MakeColumnVisible(GridColumn) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-dot-makecolumnvisible-x28-devexpress-dot-xtragrid-dot-columns-dot-gridcolumn-x29.md

latest4.5 KB
Original Source

GridView.MakeColumnVisible(GridColumn) Method

Makes the specified column visible on screen.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public virtual void MakeColumnVisible(
    GridColumn column
)
vb
Public Overridable Sub MakeColumnVisible(
    column As GridColumn
)

Parameters

NameTypeDescription
columnGridColumn

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 Views that display real data within the Grid Control. Use the following methods to access these Views with which an end user interacts at runtime.

See Also

FocusedColumn

HorzScrollVisibility

LeftCoord

MakeRowVisible

ColumnAutoWidth

VisibleIndex

Rows

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace