Click here to Skip to main content
15,879,844 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want print gridview with all data in it
How can I do this?
I work with asp.net3.5 and C# and sqlserver2005
If you put a code for this you will do a big help to me thanks
Posted
Updated 23-Oct-11 2:28am
v2
Comments
Sergey Alexandrovich Kryukov 7-Mar-13 23:47pm    
Please stop posting non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership.
Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.
—SA

Have a look at this CP article Printing a GridView with Paging[^].
 
Share this answer
 
Comments
Abhinav S 23-Oct-11 8:35am    
5. Once again the same link.
André Kraak 23-Oct-11 8:59am    
Thank you.
RaviRanjanKr 23-Oct-11 9:46am    
Nice Link, My 5+
André Kraak 23-Oct-11 10:10am    
Thanks.
 
Share this answer
 
Comments
André Kraak 23-Oct-11 8:32am    
my 5, I posted the same CP article.
Abhinav S 23-Oct-11 8:38am    
Thank you.
omidfarvaha 23-Oct-11 8:36am    
I use
http://www.aspsnippets.com/Articles/Print-functionality-in-ASP.Net-GridView-control.aspx

but have this error

Control 'ctl00_ContentPlaceHolder2_GridView1' of type 'GridView' must be placed inside a form tag with runat=server.
Now what shoud i do?
Try
Print in ASP.NET [^]
The PrintHelper class from this article contains a method called PrintWebControl that can print any control like a GridView, DataGrid, Panel, TextBox etc.
and you can also take a look at there[^] for similar question with solution.
 
Share this answer
 
Comments
omidfarvaha 23-Oct-11 10:10am    
thank alot !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

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