Index was out of range error when paging in a Nested Datagrid

Discussion in 'ASP .Net' started by Pat, Sep 2, 2005.

  1. Pat

    Pat Guest

    I have 3 Datagrid nested.
    Master
    Details
    Child
    The master has paging (And i'm using the paging inbuilt in the Datagrid)
    in the Master DataGrid you select a linkbutton(using commandname) and it
    populates the data in the Details DataGrid
    (I'm using Dim Filter As String =
    CStr(dtgMaster.DataKeys(dtgMaster.SelectedIndex)).Replace("'", "''") to
    filter btw the Datagrids)
    And the same is what i did for the Child DataGrid.
    But i noticed that after selecting a ROW in the Master DataGrid and populate
    the Details Datagrid and i try paging it WORKS!!

    But after selecting a ROW in the Details Datagrid and i go back to try
    paging the Master DataGrid i get the error below
    Index was out of range. Must be non-negative and less than the size of the
    collection. Parameter name: index
    Any ideas?
     
    Pat, Sep 2, 2005
    #1
    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. Clark Choi
    Replies:
    1
    Views:
    4,523
    Alvin Bruney
    Jan 10, 2004
  2. =?Utf-8?B?UnVkeQ==?=

    Newbie-Index out of range error

    =?Utf-8?B?UnVkeQ==?=, Feb 2, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    439
    =?Utf-8?B?UnVkeQ==?=
    Feb 3, 2005
  3. =?Utf-8?B?UnVkeQ==?=

    Index was out of range ERROR <NEWBIE ERROR>

    =?Utf-8?B?UnVkeQ==?=, Jul 6, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    512
    =?Utf-8?B?UnVkeQ==?=
    Jul 6, 2005
  4. Bill Byrd

    DataGrid Paging - Index out of Range Error

    Bill Byrd, Oct 13, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    450
    Mike Moore [MSFT]
    Oct 14, 2003
  5. Maverick

    Paging problem index out of range

    Maverick, Feb 20, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    201
    Alessandro Zifiglio
    Feb 20, 2004
Loading...

Share This Page