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.......
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajkumar RPosted Nov 10, 2011, 2:34 AM
Rajkumar RPosted Nov 10, 2011, 2:34 AM
protected void Page_Load(object sender, EventArgs e)
{
GridView1.BottomPagerRow.Visible= true;
}
protected void Button1_Click(object sender, EventArgs e)
{
GridView1.BottomPagerRow.Visible = false;
}
Jean PaulPosted Nov 10, 2011, 2:00 AM
Can you please tell me how the AllowPaging is appearing?
(Is it from the Properties window in design time or in runtime)