| PivotCube Visual Guide | Overview |
![]()
| General |
Please see the visual guide to the Dimension Toolbar as the dimension column toolbar has the same properties as the Dimension Toolbar. The most important property is the Map property, which determines the source of all dimension items which can be displayed on this toolbar.
The only difference between TPVColToolbar and TPVDimToolbar is that the order of columns in TPVColToolbar will determine how data is displayed in the Pivot Grid. To know the order of columns currently displayed on the dimension column toolbar, check the Columns property of the linked TPivotMap in the Map property of the toolbar, i.e.
TPVColToolbar.Map > TPivotMap.Columns -> TMapDimensionCollection
To add an item to the toolbar, you can use the following code:
var
AItem: TMapDimensionCollectionItem;
begin
AItem := Pivotmap1.Columns.Add;
AItem.Dimension := Pivotmap1.Dimensions[1];
Pivotmap1.RefreshData(True);
end;