I've got a PageIndexChanged event handler as follows:
Private Sub dg_PageIndexChanged (ByVal s as System.Object, ByVal e As
System.DataGridPageIndexChangedEventArgs) Handles dg.PageIndexChanged
dg.CurrentPageIndex = e.NewPageIndex
dg.DataSource = ds.Tables("ABC")
dg.DataBind( )
End Sub
___________________________________
The datagrid does not display the next 10 rows of data when I clicked on the
page number. As I have a dropdownlist, I selected another item and then back
to the same item sgain. This time, when I clicked on the new page number, the
next 10 rows were displayed.
This is not what I want. It should be that when a new page number is
selected, the next 10 rows will be displayed immediately.
Don't know what's the problem. Can anyone help ?