How to Hide gridview Allow paging While taking printout
i have a grid view and a button(button for printing). once i click the print button i want to hide the allow paging in the gridview in asp.net.......
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jean PaulRank #32 · 38.5K reputationPosted Nov 9, 2011, 9:00 PM EST
Can you please tell me how the AllowPaging is appearing?
(Is it from the Properties window in design time or in runtime)
Rajkumar R175 reputationPosted Nov 9, 2011, 9:34 PM EST
protected void Page_Load(object sender, EventArgs e)
{
GridView1.BottomPagerRow.Visible= true;
}
protected void Button1_Click(object sender, EventArgs e)
{
GridView1.BottomPagerRow.Visible = false;
}
Rajkumar R175 reputationPosted Nov 9, 2011, 9:34 PM EST