Click here to Skip to main content
15,889,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Friends,

I have a GRIDVIEW on my Webform,and Displayed Data from Database into Gridview.

In gridview Source I gave Command Filed as :
XML
<Columns>
 <asp:CommandField ShowSelectButton="True"" />
 </Columns>

When i Click the Select command in Gridview, it Redirects to another page and displays Only one Row Record.
Now Finally, I want to Print the Selected Row Records. by using Crystal Reports.
I have Created a Cyrstal Report in ASP.NET 3.5.
When I click the Print Button, All the Gridview Records are Printing.
SO I NEED TO PRINT THE ONLY SELECTED ROW RECORDS.
So Please can anybody help me, how to print the Selected Records in Gridview.

Thanks.
Posted
Updated 18-Jun-12 4:34am
v2

1 solution

Create A Crystal Report File and Design it according to your requirement. Now Create a table for the Transfer the data from Front End to Back End. Now Connect the Crystal Report to Database and select the datasource fields which you want to display in Crystal Report File.

Now When you want to print the Record at this time first insert the data in the database after just open the crystal report file. The Record will found .
But First delete all the records.
 
Share this answer
 
Comments
ShaikhM 20-Jun-12 0:12am    
I seriously dont understand the second paragraph of the solution. Probably needs editing. Looks like a solution is provided just for the sake of it. Can you be more clear.

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