Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends

I am working on a windows application in VB.Net. I have made a Search form. In this form I have a Crystal Report Viewer(CRVSearch). I have set the report source of this CRVSearch to rptDailyExpenses.
It works fine.
But the Problem is that I want to put a button on that form that Clears the data of Crystal Report Viewer, When I pressed it.
So, Which will be the code that clears the data of the CRVSearch.

Plz Help me. Waiting for Answer.
Posted

Why don't you put clear button, on trigger of which you re-bind the crystal report with an empty dataset. This would give effect of clearing data.
 
Share this answer
 
Comments
rashidfarooq 5-Sep-10 11:15am    
Thanks Brother. According to your suggestion, I did, and I got the fine result.
So, Thanks very much for solving my Problem.
Sandeep Mewara 5-Sep-10 13:18pm    
:)
Just do it..
CrystalReportViewer1.ReportSource = Nothing
CrystalReportViewer1.Refresh()
It will clear your crystal report viewer.
 
Share this answer
 
Comments
Member 11804373 11-Aug-15 2:42am    
Nothing=?

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