problem facing in paging data grid
I am facing a problem in datagrid paging ,, I have used default datagrid paging using the property builder window. I have set the page size 5.
I have also handlled the page-index-changed handler as
Private Sub DG_Forum_PageIndexChanged(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridPageChangedEvent Args) Handles DG_Forum.PageIndexChanged
DG_Forum.CurrentPageIndex = e.NewPageIndex
I can c the 1st page of the datagrid 5 records/ page. It is displaying fine.
But I cannot navigate to the records other the 1st page ,,, on clicking the page number suppose "2" I did not see any records, the datagrid is empty, but the database is full of records