pokemon Posted July 8, 2003 Posted July 8, 2003 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. Quote
mr relaxo Posted July 9, 2003 Posted July 9, 2003 do you have that 'handles' bit ?? Sub setpage (ByVal src As Object, ByVal e As DataGridPageChangedEventArgs) handles datagrid1.pageindexchanged Quote You can not get ye flask.
hrabia Posted July 9, 2003 Posted July 9, 2003 What type of data object do you bind to the grid: DataSet or SqlDataReader? Quote A man and a dog have an average of three legs. Beaware of Statistics.
pokemon Posted July 9, 2003 Author Posted July 9, 2003 Hi Found out what it was..... :D I had allowCustumepaging = true. This was preventing it from moving to the next page. Don't know why, but it now works. Thanks for the replies Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.