Finding Control in Parent Datagrid

Discussion in 'ASP .Net' started by Dave, Nov 13, 2003.

  1. Dave

    Dave Guest

    Hello all,

    I am trying to delete a row from my Datagrid (dg2) which
    is nested in a parent Datagrid (dg1). The row i need to
    delete from dg2 is based on a value in a label in dg1.
    (With me so far?)

    when I call the onDeleteCommand from dg2 I need to be able
    to reference the label in the parent datagrid dg1 but I
    cannot find a way of doing this using the
    DataGridCommandEventArgs (which relate to dg2), does
    anyone have any ideas of how I can do this? I know you can
    use Parent.Parent etc to find the parent control but how
    do you then find the label within that control?

    Thanks

    Dave.
    Dave, Nov 13, 2003
    #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. tshad

    Finding the Parent of a Control

    tshad, Dec 3, 2004, in forum: ASP .Net
    Replies:
    21
    Views:
    759
    John Saunders
    Dec 8, 2004
  2. Roy
    Replies:
    2
    Views:
    3,115
  3. mark
    Replies:
    1
    Views:
    569
  4. Replies:
    3
    Views:
    8,770
    Eliyahu Goldin
    Sep 17, 2006
  5. metal
    Replies:
    8
    Views:
    504
    Bruno Desthuilliers
    Oct 30, 2009
Loading...

Share This Page