Paging datagrid

pokemon

Member
Joined
Jul 7, 2003
Messages
11
Help!
I have a datagrid which displays records by using a sql stored procedure and has paging on it.

I have the OnPageIndexChanged="setpage" which fires the procedure to change the page the datagrid displays but its not working. I know the function is runnng as it displays the page number to the screen for testing, but it does not seem to be altering the datagrid currentpage

Sub setpage (ByVal src As Object, ByVal e As DataGridPageChangedEventArgs)
DataGrid1.CurrentPageIndex = e.newpageindex
BindGrid()
end sub

Do i have to some how tell the datagrid to change page other than the above function.

Many thanks, this is driving me crazy.
 
do you have that handles bit ??

Sub setpage (ByVal src As Object, ByVal e As DataGridPageChangedEventArgs) handles datagrid1.pageindexchanged
 
Hi

Found out what it was..... :D

I had allowCustumepaging = true.

This was preventing it from moving to the next page. Dont know why, but it now works.
Thanks for the replies
 
Back
Top