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

I want to hide the some columns of a grid view when i am printing the page by button click. I use the Code for that


XML
GridView1.Columns[0].Visible = false;
       Session["ctrl"] = Panel1;
       ClientScript.RegisterStartupScript(this.GetType(), "onclick", "<script language=javascript>window.open('Print.aspx','PrintMe');</script>");
Posted
Comments
pradiprenushe 20-Nov-12 2:32am    
In which page your gridview present?
Pradeep_kaushik 20-Nov-12 2:44am    
on the same page i want to print

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