try this,
in gridview's pageindexChanging property,
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = GetSource();
GridView1.DataBind();
}
hope it helps, mark this as answer if it helps you
thanks