-
Notifications
You must be signed in to change notification settings - Fork 5
PivotGridLayout
Christopher Tso edited this page Apr 2, 2016
·
1 revision
Save and Load user-defined layouts for any Pivot Grid.
Navigate to Domain Object 1 Pivot

Select Layout > Reset from the menu. This will reset the Pivot Grid layout and create default layouts which you can load.


You can prevent the user from creating profiles that has the same name as one that's in ReservedLayoutNames.
To do this, add the below lines to the XAF module. This example prevents the user from specifying Default1LayoutName or Default2LayoutName as the name.
PivotGridSavedLayout.ReservedLayoutNames.Add(DomainObject1PivotGridSetup.Default1LayoutName, typeof(DomainObject1).Name);
PivotGridSavedLayout.ReservedLayoutNames.Add(DomainObject1PivotGridSetup.Default2LayoutName, typeof(DomainObject1).Name);