Hi, I am very new to web development, and would appreciate any advice given that helps me get going again.
Basically I just need to know how to use the pageindexchanging event on a gridview.
I have bound my gridview to a dataset (which in my example contains 18 records).
I am allowing paging on the gridview and set a limit of 5 results per pagesize, therefore I get 4 pages indicated on my gridview. However when I select the 2nd 3rd or 4th page I started getting an error about pageindexchanging not being handled.
So I created a sub routine to handle this event, but I do not know what to put in this Sub. At the moment the sub routine is blank but my gridview does not show when the page refreshes after selecting the 2nd 3rd or 4th page.
Any help is much appreciated.