Category / Section
How to Expand or Collapse all Levels in OlapGrid Control
1 min read
We can able to Expand/Collapse all the Levels in OlapGrid Control using DrillState API of DimensionElement in OlapReport.
The following code explains expand/collapse all the levels of OlapGrid.
C#
DimensionElement dimensionElementRow1 = new DimensionElement(); //Specifying the Dimension Name dimensionElementRow1.Name = "Date"; dimensionElementRow1.AddLevel("Fiscal", "Fiscal Year"); dimensionElementRow1.DrillState = DrillState.ExpandAll;
|