Nested DataGrids

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    #1

    Nested DataGrids

    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.W ebControls.Data Grid

    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]

    #2
    Re: Nested DataGrids

    Hi Dave,

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





    Good luck!

    --
    Ray Dixon - Microsoft MVP
    ray@NOSPAM.gree ble.com
    (remove NOSPAM. from my e-mail address for a direct reply)


    "Dave" <davet65109@hot mail.com> wrote in message
    news:048e01c34f 85$dc2a4bf0$a00 1280a@phx.gbl.. .[color=blue]
    > 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.W ebControls.Data Grid
    >
    > 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
    >
    >[/color]


    Comment

    Working...