I wrote code for gridview paging , when ever i compile program it runs successfully.But when i click on the second page the gridview is not displaying on the webpage.
please find the attached code.
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = (DataSet)ViewState["studetails"];
Any one can help me on these issue .