How to set defer layout update in PivotGrid?

23 Oct 2019 / 1 minute to read

It can be achieved by setting the property DeferLayoutUpdate to true via code or through the DeferLayoutUpdate check-box (UI option) inside PivotSchemaDesigner control.

If through XAML, please refer the below code sample.

  • xaml
  • <syncfusion:PivotGridControl HorizontalAlignment="Left" Name="pivotGrid" VerticalAlignment="Top" 
                     DeferLayoutUpdate="True" ItemSource="{Binding   Source={StaticResource data}}" >

    Else if through Code-behind, please refer the below code sample.

  • c#
  • public MainWindow()
                pivotGrid.DeferLayoutUpdate = true;