Back to Devexpress

PivotGridControl.LayoutChanged() Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-d41cb9fb.md

latest2.5 KB
Original Source

PivotGridControl.LayoutChanged() Method

Updates the PivotGridControl.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public void LayoutChanged()
vb
Public Sub LayoutChanged

Remarks

The LayoutChanged method recalculates all of the pivot grid’s graphical information and redraws it. This method is automatically called when changes are applied to the control (for example, when the field width is changed, etc). This method can also be called manually when the pivot grid needs to be updated. This can be done when you need the control to be updated in response to custom actions that don’t lead to automatic updating.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LayoutChanged() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-pivot-grid-split-field-value-cells/CS/Window1.xaml.cs#L51

csharp
private void rbDefault_Checked(object sender, RoutedEventArgs e) {
    pivotGrid.LayoutChanged();
}

wpf-pivot-grid-split-field-value-cells/VB/Window1.xaml.vb#L50

vb
Private Sub rbDefault_Checked(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Me.pivotGrid.LayoutChanged()
End Sub

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace