0

默认情况下,Web 窗体上的 Crystal Viewer 会显示展开的组树面板,即使未使用也是如此。我希望查看器显示为默认情况下折叠的组树面板。我可以这样做吗?怎么做?

4

2 回答 2

1

This link may be of some interest to you

http://www.codeproject.com/Tips/207643/Hide-Report-Group-Tree-in-WPF

Alternatively you can hide it altogether with the following:

[Visual Basic]

CrystalReportViewer1.DisplayGroupTree() = True

[C#]

crystalReportViewer1.DisplayGroupTree = true;

[C++]

crystalReportViewer1->DisplayGroupTree = true;

[VJ#]

crystalReportViewer1.set_DisplayGroupTree(true);
于 2013-08-15T14:20:13.190 回答
0

使用 Jquery:

$(document).ready(function() {
     $("[id$=panelHeader_close]").click();
  });
于 2013-08-15T18:44:10.290 回答