Skip to main content
A newer version of this page is available. .

PivotLayoutAllowEventArgs Class

Provides data for the PivotGridControl.BeforeLoadLayout event.

Namespace: DevExpress.Xpf.PivotGrid

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

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