PivotGridControl.RestoreCollapsedStateFromFile(String) Method

Restores the collapsed state of field values from the specified file.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v20.1.dll

Declaration

public void RestoreCollapsedStateFromFile(
    string path
)
Public Sub RestoreCollapsedStateFromFile(
    path As String
)

Parameters

Name Type Description
path String

A String value which specifies the path to the file from which the collapsed state of field values is read. If the specified file doesn't exist, an exception is raised.

Remarks

Use the RestoreCollapsedStateFromFile method to load the collapsed state of field values written to a stream using the PivotGridControl.SaveCollapsedStateToFile method.

The collapsed states of field values can only be restored in the same layout they were saved in. If the control layout was changed after saving the collapsed states (for instance, some fields have been reordered or hidden), the RestoreCollapsedStateFromFile method may have no effect, or may restore the collapsed states incorrectly. To ensure that the collapsed states are loaded correctly, do one of the following

NOTE

The RestoreCollapsedStateFromFile method has no effect if used when data is not loaded (i.e., the PivotGridControl.DataSource property is not initialized).

NOTE

The collapsed states for server mode and regular data sources are stored in different formats and not compatible with each other. Some issues can appear on restoring the collapsed state from different data source modes.

See Also