SAP Knowledge Base Article - Public

1183704 - How to display or hide the Group Tree in CrystalReportViewer control through code in Crystal Reports 2008


As of Crystal Reports 2008, the DisplayGroupTree property of CrystalReportViewer control is no longer available.


The DisplayGroupTree property of CrystalReportViewer Control is obsolete in CR 2008 .NET API


In CR 2008 .NET API, the CrystalReportViewer control has a new property called ToolPanelView. Using this property we turn off or on the Group Tree.
Below code shows how to turn off the Group Tree (applied to both Windows and Web "CrystalReportViewer" control):
Visual Basic:
To Turn off:
CrystalReportViewer.ToolPanelView = ToolPanelViewType.None
To Turn on:
CrystalReportViewer.ToolPanelView = ToolPanelViewType.GroupTree
To Turn off:
crystalReportViewer.ToolPanelView = ToolPanelViewType.None;
To Turn on:
crystalReportViewer.ToolPanelView = ToolPanelViewType.GroupTree;
The Enum value "None" of ToolPanelViewType will turn off both Group Tree and Parameter Panel in the CrystalReportViewer Control. You can turn on both Group Tree and Parameter Panel by clicking the corresponding button in the Tool bar. 
ToolPanelView property, CrystalReportViewer.ToolPanelView, ToolPanelViewType,


ToolPanelView property, CrystalReportViewer.ToolPanelView, ToolPanelViewType, DisplayGroupTree, ToolPanelView , 1427112 , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To


Crystal Reports 2008 V0