CrystalReportViewer.ShowGroupTreeButton Property

Gets or sets whether the CrystalReportViewer control's toolbar has the button for showing or hiding the group tree.

Namespace CrystalDecisions.Windows.Forms Assembly CrystalDecisions.Windows.Forms (CrystalDecisions.Windows.Forms.dll)

Syntax

'Declaration

Public Property ShowGroupTreeButton As Boolean
public bool ShowGroupTreeButton {get; set;}

Example

This example will display all of the available buttons in the CrystalReportViewer toolbar.

'Declaration

    Private Sub SetShowButtons()
      CrystalReportViewer.ShowCloseButton = True
      CrystalReportViewer.ShowExportButton = True
      CrystalReportViewer.ShowGotoPageButton = True
      CrystalReportViewer.ShowGroupTreeButton = True
      CrystalReportViewer.ShowPageNavigateButtons = True
      CrystalReportViewer.ShowPrintButton = True
      CrystalReportViewer.ShowRefreshButton = True
      CrystalReportViewer.ShowTextSearchButton = True
      CrystalReportViewer.ShowZoomButton = True
    End Sub
    private void SetShowButtons()
    {
      crystalReportViewer.ShowCloseButton = true;
      crystalReportViewer.ShowExportButton = true;
      crystalReportViewer.ShowGotoPageButton = true;
      crystalReportViewer.ShowGroupTreeButton = true;
      crystalReportViewer.ShowPageNavigateButtons = true;
      crystalReportViewer.ShowPrintButton = true;
      crystalReportViewer.ShowRefreshButton = true;
      crystalReportViewer.ShowTextSearchButton = true;
      crystalReportViewer.ShowZoomButton = true;
    }

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Windows.Forms Namespace