Back to Devexpress

TreeListOptionsView.BestFitUseErrorInfo Property

windowsforms-devexpress-dot-xtratreelist-dot-treelistoptionsview-f8ba2eed.md

latest3.0 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
[XtraSerializableProperty]
public virtual DefaultBoolean BestFitUseErrorInfo { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
<XtraSerializableProperty>
Public Overridable Property BestFitUseErrorInfo As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

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

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

BestFit()

BestFitColumns(Boolean)

TreeListOptionsView Class

TreeListOptionsView Members

DevExpress.XtraTreeList Namespace