Nested DataGrids

Discussion in 'ASP .Net' started by Dave, Jul 21, 2003.

  1. Dave

    Dave Guest

    If you drop a datagrid into an itemtemplate column of a
    datagrid using VS.net, it doesn't get declared in the
    designer code with

    Protected WithEvents NestedGrid As
    System.Web.UI.WebControls.DataGrid

    I presume that is why you can't pick up the ItemCommand
    event of the NestedGrid if it has an ImageButton in it.
    That being the case, does anyone know what you must do to
    pick up the event?

    I added the declaration but it didn't help. Seems like
    you must pick up the datagrid somehow by accessing it
    through the cells of the datagrid that contains it.

    Thanks
     
    Dave, Jul 21, 2003
    #1
    1. Advertisements

  2. Hi Dave,

    Here are a couple of articles on nested datagrids that might help:

    http://www.standardio.org/article.aspx?id=155

    http://www.developer.com/db/article.php/10920_2228761_1

    Good luck!

    --
    Ray Dixon - Microsoft MVP

    (remove NOSPAM. from my e-mail address for a direct reply)


    "Dave" <> wrote in message
    news:048e01c34f85$dc2a4bf0$...
    > If you drop a datagrid into an itemtemplate column of a
    > datagrid using VS.net, it doesn't get declared in the
    > designer code with
    >
    > Protected WithEvents NestedGrid As
    > System.Web.UI.WebControls.DataGrid
    >
    > I presume that is why you can't pick up the ItemCommand
    > event of the NestedGrid if it has an ImageButton in it.
    > That being the case, does anyone know what you must do to
    > pick up the event?
    >
    > I added the declaration but it didn't help. Seems like
    > you must pick up the datagrid somehow by accessing it
    > through the cells of the datagrid that contains it.
    >
    > Thanks
    >
    >
     
    Ray Dixon [MVP], Jul 21, 2003
    #2
    1. Advertisements

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. Dave

    Nested DataGrids

    Dave, Jul 15, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    734
    S. Justin Gengo
    Jul 15, 2003
  2. Dave T

    Edit Nested Datagrids

    Dave T, Nov 3, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    496
    Dave T
    Nov 3, 2003
  3. ProgramAnalyst

    nested datagrids

    ProgramAnalyst, Nov 4, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    590
    ProgramAnalyst
    Nov 5, 2004
  4. David Lozzi

    SQL, XML, Nested Datagrids and the like

    David Lozzi, Oct 7, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    507
    Frankie
    Oct 7, 2005
  5. Replies:
    0
    Views:
    446
  6. Steve Hershoff
    Replies:
    6
    Views:
    449
    Steve Hershoff
    Aug 30, 2006
  7. Erik

    Multiple Nested DataGrids

    Erik, Jul 16, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    214
  8. Atif Jalal

    Nested Datagrids

    Atif Jalal, Sep 26, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    159
    Atif Jalal
    Sep 26, 2003
Loading...