I used following code to save and restore DevExpress PivotGridControl V7.2
layout:
//save layout
var fileName = string.Format(@"c:\pivot.xml");
pivotGridControl.SaveLayoutToXml(fileName);
//restore layout
var fileName = string.Format(@"c:\pivot.xml");
pivotGridControl.ForceInitialize();
pivotGridControl.RestoreLayoutFromXml(fileName);
But after running restore code, the layout doesn't change! Has my code any problem?
Thanks to Devexpress Support, following code, solved the problem: