How to set defer layout update in PivotGrid?

23 Oct 20191 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}}" >
            </syncfusion:PivotGridControl>

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

  • C#
  • public MainWindow()
            {
                InitializeComponent();
                pivotGrid.DeferLayoutUpdate = true;
            }