Back to Devexpress

PivotGridControl.SaveCollapsedStateToFile(String) Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-savecollapsedstatetofile-x28-system-dot-string-x29.md

latest2.1 KB
Original Source

PivotGridControl.SaveCollapsedStateToFile(String) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Saves the collapsed state of field values to the specified file.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public void SaveCollapsedStateToFile(
    string path
)
vb
Public Sub SaveCollapsedStateToFile(
    path As String
)

Parameters

NameTypeDescription
pathString

A String value which specifies the path to the file to which the collapsed state of field values is saved. If the specified file doesn’t exist, it is created.

|

Remarks

The saved settings can then be restored using the PivotGridControl.RestoreCollapsedStateFromFile method.

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

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace