Back to Devexpress

GridOptionsView.BestFitUseErrorInfo Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsview-80292c4a.md

latest3.4 KB
Original Source

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

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

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

BestFit()

BestFitColumns

GridOptionsView Class

GridOptionsView Members

DevExpress.XtraGrid.Views.Grid Namespace