i have tried that one, like this but not working
protected void btnPrint_Click(object sender, EventArgs e)
{
int count = GridView1.PageCount;
if (count == GridView1.PageIndex + 1)
{
GridView1.EmptyDataRowStyle.Font.Bold = true;
GridView1.FooterRow.Visible = true;
}
else
{
GridView1.FooterRow.Visible = false;
}
//GridView1.PagerSettings.Visible = false;
GridView1.AllowPaging = false;
//GridView1.BottomPagerRow.Visible = false;
GridView1.FooterRow.Font.Bold = true;
Response.Write("<script>window.print();</script>");
BindGrid();
GridView1.AllowPaging = true;
}
once finally i set as true, paging shown in the printing time also..
please post any help
rajrprk-12523, if this helps please login to Mark As Answer. | Alert Moderator