I am trying to add paging to a web grid. I have the grid working nicely without it.
I got an error about page events so went through the posts here and found code similar to this.
Protected Sub gvitems_PageIndexChanging(ByVal sender As Object, ByVal g As System.Web.UI.WebControls.GridViewPageEventArgs) Handles grdpv.PageIndexChanging
grdpv.PageIndex = g.NewPageIndex
End Sub
Modifing that to the above got rid of the crash but the page doesn't change.
I've also seen stuff about making the data connection a session variable. How do you do that?
I got an error about page events so went through the posts here and found code similar to this.
Protected Sub gvitems_PageIndexChanging(ByVal sender As Object, ByVal g As System.Web.UI.WebControls.GridViewPageEventArgs) Handles grdpv.PageIndexChanging
grdpv.PageIndex = g.NewPageIndex
End Sub
Modifing that to the above got rid of the crash but the page doesn't change.
I've also seen stuff about making the data connection a session variable. How do you do that?