Hi
I have a problem i save the layout pivot grid be
pivotgrid.SaveLayoutToXml(@"c:\layoutTT.xml");
when i rstore layout be do
for (int i = 0; i < podpivilosckolumn; i++)
{
if (dane.Tables[0].Columns
.ToString() != null)
{
fields
= new PivotGridField();
fields
.FieldName = dane.Tables[0].Columns
.ToString();
fields
.FieldName = dane.Tables[0].Columns
.ToString();
fields
.Caption = dane.Tables[0].Columns
.Caption;
if (dane.Tables[0].Columns
.DataType.Name == "Double")
{
fields
.ValueFormat.FormatString = "#.00";
fields
.ValueFormat.FormatType = DevExpress.Utils.FormatType.Custom;
}
else if (dane.Tables[0].Columns
.DataType.Name == "DateTime")
{
fields
.ValueFormat.FormatString = "yyyy-MM-dd";
fields
.ValueFormat.FormatType = DevExpress.Utils.FormatType.Custom;
}
else if (dane.Tables[0].Columns
.DataType.Name == "Decimal")
{
fields
.ValueFormat.FormatString = "#.00";
fields
.ValueFormat.FormatType = DevExpress.Utils.FormatType.Custom;
}
pivot.Fields.Add(fields
);
}
}
pivotgrid.RestoreLayoutFromXml(@"c:\layoutTT.xml");
restored are all data witch out position field on pivot grid. Is there any problem witch save this data or a i do somthink wrong.
Thanks for any help
Gretings
Gregor
HI WITCH CREW DEVEXPRESS WE FOUND THE PROBLEM I HAVE FORGET ADD THE FIELD THE NAME.
THANKS FORA ALL HELP