SAP Knowledge Base Article - Public

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

Symptom

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

Cause

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

Resolution

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
 
C#:
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,

Keywords

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

Product

Crystal Reports 2008 V0