By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

DataGrid paging on usercontrol

P: n/a
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

Mar 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello

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

Me.datagrid.CurrentPageIndex = e.NewPageIndex

End Sub

just replace datagrid with the name of your datagrid

Shahil

<ki*************@consultant.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
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

Mar 20 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.