Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I wish to hide the group tree of the crystal report viewer programatically.
Intellisense denied any "DisplayGroupTree" property of the control!
A little googling yielded the fact that in VS 2008 the "ToolPanelView" property serves the purpose.
The intellisense denied even this property.
I am using VS 2008 and the build is with target 3.5 framework.
I feel betrayed.
Please help!

Regards,
Sid
Posted
Comments
000mann000 23-Jan-13 13:33pm    
i also want to know that how i can hide grouped report in crystal report,, if screen shot will be show than it will be helpful..
thanks

C++
CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
 
Share this answer
 
Comments
Kinjal Sucess 29-Oct-13 4:51am    
Thanks.. it works..
smrafat 8-Jan-14 4:09am    
but where to add this code?
Maduwantha Hettiarachchi 16-Sep-14 0:45am    
You can add Like this


switch (Request.QueryString["ReportName"].ToString())
{
case "IWBranchWiseDetailReport":
CrystalReportViewer1.ReportSource = (object)Session["ReportData"];
CrystalReportViewer1.ParameterFieldInfo = (CrystalDecisions.Shared.ParameterFields)Session["ReportParams"];
break;

case "IWChequesReferrdByRmWithRemarks":
CrystalReportViewer1.ReportSource = (object)Session["ReportData"];
CrystalReportViewer1.ParameterFieldInfo = (CrystalDecisions.Shared.ParameterFields)Session["ReportParams"];
break;


}
MultiView1.ActiveViewIndex = 0;
CrystalReportViewer1.ToolPanelView = CrystalDecisions.Web.ToolPanelViewType.None;
This is what I do
crystalReportViewer1.ToolPanelView = CrystalDecisions.Windows.Forms.ToolPanelViewType.None;
 
Share this answer
 
Comments
Pravin Kharawade 1-Feb-14 6:42am    
It works...Thanx
Syed Baqer Naqvi 25-Mar-17 6:59am    
helpful. thanks
I added the line above...
"Intellisense denied any "DisplayGroupTree" property of the control!"
In VS2008 the property has been removed.... :((
 
Share this answer
 
Please check solution here:
Hide Report Group Tree in WPF
 
Share this answer
 
v2
Hi babai28

you can hide group tree using this

crystalReportViewer1.DisplayGroupTree = false;

this will hide group tree

Hope this will help you
 
Share this answer
 
Comments
mehedi4055 27-Dec-11 22:48pm    
Yes. You are right. Thanks.
pravee michael 26-Jun-13 8:43am    
Thank u ...for right answer
I Solve This issue If anyone still Looking 4 answer email me on
Wais2010@yahoo.com
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900