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

  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. 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. Juliano Bortolozzi

    Re: Nested Datagrids

    Juliano Bortolozzi, Jul 14, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    418
    Juliano Bortolozzi
    Jul 14, 2003
  2. Dave

    Nested DataGrids

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

    Edit Nested Datagrids

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

    nested datagrids

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

    SQL, XML, Nested Datagrids and the like

    David Lozzi, Oct 7, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    370
    Frankie
    Oct 7, 2005
Loading...

Share This Page