Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotLayoutAllowEventArgs Class

Provides data for the PivotGridControl.BeforeLoadLayout event.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public class PivotLayoutAllowEventArgs :
    PivotLayoutUpgradeEventArgs

#Remarks

The PivotGridControl.BeforeLoadLayout event occurs before a layout is restored from a storage, allowing you to cancel this action.

The PivotLayoutAllowEventArgs class provides the PivotLayoutAllowEventArgs.Allow property that allows you to cancel restoring a layout. To stop the layout from being restored, set the PivotLayoutAllowEventArgs.Allow property to false.

The PivotLayoutUpgradeEventArgs.PreviousVersion property defines the version of the layout being restored. This can be compared with the version of the current layout specified by the DevExpress.Xpf.Core.Serialization.DXSerializer.LayoutVersion attached property value set for the PivotGridControl instance. The layout restoration can be canceled, for example, if the versions do not match.

#Inheritance

See Also