protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
BindGrid();
int count = GridView1.PageCount;
if (count == GridView1.PageIndex + 1)
{
GridView1.FooterRow.Visible = true;
}
else
{
GridView1.FooterRow.Visible = false;
}
}
I above code i have used to hide the footer page hiding but some times it is not working properly. I want to show the total in the final page of the gridview, remaining page footer should not visible,Any one please