TreeList.MakeColumnVisible(TreeListColumn) Method
Scrolls the control’s content so that the specified column becomes visible on screen.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
Declaration
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:
- the specified column is hidden (its TreeListColumn.VisibleIndex property is set to a negative value);
- the column or the column’s band is anchored to a control edge (see TreeListColumn.Fixed, TreeListBand.Fixed);
- the specified column is already visible on screen.
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.