TreeList.MakeColumnVisible(TreeListColumn) Method

Scrolls the control's content so that the specified column becomes visible on screen.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

public virtual void MakeColumnVisible(
    TreeListColumn column
)
Public Overridable Sub MakeColumnVisible(
    column As TreeListColumn
)

Parameters

Name Type Description
column TreeListColumn

The column to make visible on screen.

Remarks

If the TreeList.OptionsView's TreeListOptionsView.AutoWidth option is disabled, the control width can be less than the total width of columns. The control displays scrollbars in this case. The MakeColumnVisible method allows you to scroll to the required column from code.

The MakeColumnVisible method does nothing in the following cases:

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

NOTE

When assigning a column to the TreeList.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 TreeList.FocusedColumn property. The MakeColumnVisible method should be used when you don't need to move focus to the target column.

See Also