Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

do you have that 'handles' bit ??

 

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

You can not get ye flask.
Posted
What type of data object do you bind to the grid: DataSet or SqlDataReader?

A man and a dog have an average of three legs.

Beaware of Statistics.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...