DataGrid paging on usercontrol

  • Thread starter Thread starter kimberly.walker
  • Start date Start date
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
 
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

Back
Top