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
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

TulasiRank #2,544 · 549 reputationPosted Nov 6, 2011, 7:37 PM EST
have u put this below line in BindGrid() method
GridView1.DataSource = dt;
GridView1.DataBind();
GridView1.FooterRow.Visible = false;
TulasiRank #2,544 · 549 reputationPosted Nov 6, 2011, 7:22 PM EST
change the above code and chk it .
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
BindGrid();
Rajkumar R175 reputationPosted Nov 6, 2011, 7:29 PM EST
Rajkumar R175 reputationPosted Nov 6, 2011, 7:30 PM EST
Rajkumar R175 reputationPosted Nov 6, 2011, 8:23 PM EST
GridView1.FooterRow.Visible = false;