i had used gridview to display records from database, i am able to display records but in pagination when i click 2,3,4,5......10 page the gridview disappears.
find the code below for gridview:
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="10" AutoGenerateColumns="False" OnPageIndexChanging="GridView1_PageIndexChanging" onselectedindexchanged="GridView1_SelectedIndexChanged"
GridLines="Horizontal">
code behind:
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.BottomPagerRow.Visible = true;
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataBind();
}