The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+
Row

PivotBehaviorOptions.AutoFitColumns Property

Gets or sets a value indicating whether column widths should be automatically resized when the pivot table is recalculated or refreshed.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.2.Core.dll

Declaration

bool AutoFitColumns { get; set; }
Property AutoFitColumns As Boolean
bool AutoFitColumns { get; set; }
Property AutoFitColumns As Boolean
bool AutoFitColumns { get; set; }
Property AutoFitColumns As Boolean

Property Value

Type Description
Boolean

true, to automatically adjust column widths each time the pivot table is updated; otherwise, false.

The default value is true.

Property Value

Type Description
Boolean

true, to automatically adjust column widths each time the pivot table is updated; otherwise, false.

The default value is true.

Property Value

Type Description
Boolean

true, to automatically adjust column widths each time the pivot table is updated; otherwise, false.

The default value is true.

Remarks

By default, when you change your PivotTable report (add, move or remove fields, change the report layout, apply filters etc.) or perform a refresh operation, column widths in the pivot table are automatically resized to fit the cell content. To preserve the column widths so that they don't change when the pivot table is recalculated or refreshed, set the AutoFitColumns property to false.

See Also