Click here to Skip to main content
15,894,740 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I want to print a grid view this grid view contains auto generated "EDIT AND DELETE BUTTONS
I want to hide these buttons at the time of printing
Posted
Comments
joshrduncan2012 4-Jan-13 10:14am    
What is your question exactly? What have you tried as far as accomplishing this?

You can open a popup, pass parameters as querystring that you used to populate gridview, display data there and firing javascript's window.print method on page load. You can also close the window when the content is printed. This way you can manage the appearance of your page much gracefully.
 
Share this answer
 
You can have a different CSS style for printing where the CSS class defined for the edit-delete button columns would change.

Thus, CSS class for the columns would differ in normal stylesheet and the print stylesheet. This difference would have display property as 'block' & 'none'.
 
Share this answer
 

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