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

TreeListOptionsView.BestFitUseErrorInfo Property

Gets or sets whether cell error icons are taken into account when calculating the “best width” for columns.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.TreeList

Declaration

[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean BestFitUseErrorInfo { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean value that specifies whether cell error icons are taken into account when calculating the “best width” for columns.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Property Paths

You can access this nested property as listed below:

Object Type Path to BestFitUseErrorInfo
TreeList
.OptionsView .BestFitUseErrorInfo

Remarks

The best fit feature (see TreeListColumn.BestFit) allows you to resize a column(s) to the minimum width required to display the column’s contents completely.

Set the BestFitUseErrorInfo property to True to take into accout cell error icons (see TreeList.SetColumnError) when calculating the “best width” for columns.

Note

Cell error icons are never taken into accoutn in Fast best-fit mode.

See Also