New to Telerik UI for WinForms? Start a free 30-day trial

Measures PivotGrid column and row headers and applies the resulting sizes to their groups.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public class PivotBestFitHelper

Inheritance: objectPivotBestFitHelper

Constructors

Initializes the helper for the specified PivotGrid element.

C#
public PivotBestFitHelper(RadPivotGridElement owner)
Parameters:ownerRadPivotGridElement

The element whose headers and cells are measured.

Methods

Measures a column header and its cells, then stores the widest measured width on the group.

C#
public void BestFitColumn(PivotGroupNode column)
Parameters:columnPivotGroupNode

The column group whose preferred width is recalculated.

Recalculates widths for traversed column groups, fitting leaf groups or all groups in compact layout.

C#
public void BestFitColumns()

Recalculates the width of every row-header level from its descriptor and group labels.

C#
public void BestFitRowHeaders()

Recalculates the width of one row-header level from its descriptor and group labels.

C#
public void BestFitRowHeaders(int level)
Parameters:levelint

The row-group level whose header width is recalculated.