ColumnsViewMode: PivotViewMode;
The ColumnsViewMode property determines a mode of dimension displaying, when arranged in columns (by default the Default value is used, that is a setting determined for the whole report).
Executing the example requires a form with the Button1 button on the form, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source.
Sub Button2OnClick(Sender: Object; Args: IMouseEventArgs);
Var
OLAP: IEaxAnalyzer;
Pivot: IPivot;
Dims: IPivotDimensions;
Dim: IPivotDimension;
Begin
OLAP := UiErAnalyzer1.ErAnalyzer;
Pivot := OLAP.Pivot;
Dims := Pivot.Dimensions;
For Each Dim In Dims Do
dim.ColumnsViewMode := PivotViewMode.LevInSlot;
End For;
End Sub Button2OnClick;
After executing the example clicking the Button1 button shows each dimension level located by columns in a separate position.
See also: