swtiley
asked on
PageIndexChanged and GridView - how to use
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.
Thanks
...Steve
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.
Thanks
...Steve
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
as i was trying to explain to the last adviser, i am a little green with coding ..
would you be able to import the two files and edit according for me..??? I have re downloaded from my site, so it will be clean from where i originally started with him..
PlayerHistoryaspx.txt
PlayerHistoryaspxcs.txt