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
TulasiPosted Nov 7, 2011, 12:37 AM
have u put this below line in BindGrid() method
GridView1.DataSource = dt;
GridView1.DataBind();
GridView1.FooterRow.Visible = false;
Rajkumar RPosted Nov 7, 2011, 1:23 AM
GridView1.FooterRow.Visible = false;
Rajkumar RPosted Nov 7, 2011, 12:30 AM
Rajkumar RPosted Nov 7, 2011, 12:29 AM
TulasiPosted Nov 7, 2011, 12:22 AM
change the above code and chk it .
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
BindGrid();