DataGrid paging on usercontrol

Discussion in 'ASP .Net' started by kimberly.walker@consultant.com, Mar 19, 2006.

  1. Guest

    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, 2006
    #1
    1. Advertising

  2. Shahil Shah Guest

    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

    <> wrote in message
    news:...
    >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
    >
    Shahil Shah, Mar 20, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. huobazi
    Replies:
    1
    Views:
    667
    David Waz...
    Jul 3, 2003
  2. =?Utf-8?B?UGF0cmljay5PLklnZQ==?=

    DataSet paging vs Datareader paging

    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Oct 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    10,654
    Scott Allen
    Oct 8, 2004
  3. wh1974
    Replies:
    0
    Views:
    2,416
    wh1974
    Jan 12, 2005
  4. Red
    Replies:
    1
    Views:
    702
  5. =?Utf-8?B?S2lt?=

    DataGrid paging on usercontrol

    =?Utf-8?B?S2lt?=, Mar 19, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    348
    =?Utf-8?B?S2lt?=
    Mar 19, 2006
Loading...

Share This Page