You can to do following task to achieve this.
1) create a class level static DataTable
static DataTable dtDataForGrid= new DataTable();
2)In the Page_Load method , fill DataTable dtDataForGrid and bind it with GridView.
dtDataForGrid.Rows.Clear();
GridView1.DataSource = dtDataForGrid;
GridView1.DataBind();
3) After doing above job. generate the GridView1_PageIndexChanging event. and write the following code.
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = dtDataForGrid;
GridView1.DataBind();
}
hope this will help you out.
Thanks,
Arshad