Rajkumar R

Rajkumar R

  • NA
  • 183
  • 220.4k

How to hide footer page total from gridview in asp.net

Nov 6 2011 11:52 PM
 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

Answers (5)