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

GridOptionsView.BestFitUseErrorInfo Property

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll

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

Corresponds to a Boolean value of true.

False

Corresponds to a Boolean value of false.

Default

The value is determined by the current object’s parent object setting (e.g., a control setting).

Property Paths

You can access this nested property as listed below:

Object Type Path to BestFitUseErrorInfo
AdvBandedGridView
.OptionsView.BestFitUseErrorInfo
BandedGridView
.OptionsView.BestFitUseErrorInfo
GridView
.OptionsView.BestFitUseErrorInfo

Remarks

The best fit feature allows you to resize, in code, a column(s) to the minimum width required to display the column’s contents completely, and an end-user to accomplish this at runtime. The GridColumn.BestFit and GridView.BestFitColumns methods invoke the best fit functionality. See these topics to learn more.

You can set the BestFitUseErrorInfo property to True or False to forcibly use or ignore cell error icons when calculating the “best width” for columns. If the BestFitUseErrorInfo property is set to Default, cell error icons are taken into account only if the number of data rows is not greater than 500.

See Also