- Code: Select all
procedure TOLAP.PivotGridColumnHeaderClick(Sender: TObject; X,
Y, ColIndex, RowIndex: Integer; Cell: PHeaderCell);
var
i: integer;
begin
inherited;
i := Cell^.DimIndex;
Label1.Caption := PivotMap.Dimensions[i].AliasName;
end;
The above code gives totally wrong dimension names - is there a way to determine what Dimension a user has clicked on? Ideally I need the exact dimensional item (i.e. if the dimension is Customer Age, I want to know what age band they clicked on.)
Cheers,
Matt.