Back to Devexpress

PivotGridOptionsBehavior.ApplyBestFitOnFieldDragging Property

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridoptionsbehavior.md

latest2.5 KB
Original Source

PivotGridOptionsBehavior.ApplyBestFitOnFieldDragging Property

Gets or sets whether the Best-Fit feature is automatically applied to a field after it has been dragged and dropped at another location.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public bool ApplyBestFitOnFieldDragging { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property ApplyBestFitOnFieldDragging As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true if the Best-Fit feature is applied to a field after it has been dragged and dropped at another location; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ApplyBestFitOnFieldDragging
PivotGridControl

.OptionsBehavior .ApplyBestFitOnFieldDragging

|

Remarks

The Best-Fit feature when it is applied to a field automatically resizes the columns that correspond to the field so that their contents are completely displayed. This property specifies whether the Best-Fit feature should be applied when a field is dragged-and-dropped by an end-user.

To apply the Best-Fit feature via code the PivotGridControl.BestFit and PivotGridField.BestFit methods can be used.

See Also

BestFit

BestFit()

PivotGridOptionsBehavior Class

PivotGridOptionsBehavior Members

DevExpress.XtraPivotGrid Namespace