I've used asp.net gridview control. In gridview doing paging manually. But only first page shows the records. the page is completely blank. can anyone suggest what & where will I need to modify for the PageIndex Events?
asp.net paging, 1st page shows records, but 2nd page is empty
1.7k Views Asked by user1826475 At
2
There are 2 best solutions below
1

//Solved 100% work
use this code inside Page_index_Changing { GridView1.PageIndex = e.NewPageIndex; SqlCommand cmd = new SqlCommand("Select * from Requseted_movie ORDER BY [ID] DESC", con);
SqlDataAdapter DA1 = new SqlDataAdapter(cmd); DA1.Fill(DT1);
GridView1.DataSource = DT1;
GridView1.DataBind();
}
You need to change the page index of grid and bind it in PageIndexChanged.