Click here to Skip to main content
14,426,582 members
Rate this:
Please Sign up or sign in to vote.
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


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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100