DataGrid paging on usercontrol

K

kimberly.walker

I have a datagrid on a usercontrol and im using paging the problem is
when i click on the second page and select a row it gives me the value
of the first page in that specific row. Ive set the currentpage but it
still isn't working. Any help will be greatly appreciated
Thanks
 
S

Shahil Shah

Hello

try this
Private Sub datagrid_PageIndexChanged(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridPageChangedEventArgs) Handles
datagrid.PageIndexChanged

Me.datagrid.CurrentPageIndex = e.NewPageIndex

End Sub

just replace datagrid with the name of your datagrid

Shahil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top