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

    Finding the Parent of a Control

    tshad, Dec 3, 2004, in forum: ASP .Net
    Replies:
    21
    Views:
    950
    John Saunders
    Dec 8, 2004
  2. Roy
    Replies:
    2
    Views:
    3,471
  3. =?Utf-8?B?UmFlZCBTYXdhbGhh?=

    Access User Control DataGrid Controls from parent page

    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Feb 16, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    1,005
    IPGrunt
    Feb 16, 2005
  4. Skowronek
    Replies:
    4
    Views:
    4,970
    ProgTalk
    Dec 4, 2007
  5. Replies:
    3
    Views:
    9,190
    Eliyahu Goldin
    Sep 17, 2006
  6. Dr. X
    Replies:
    1
    Views:
    587
    Saravana
    Jul 22, 2003
  7. MattB
    Replies:
    0
    Views:
    271
    MattB
    Jul 15, 2004
  8. John Dalberg

    How does a nested datagrid reference parent row in master datagrid?

    John Dalberg, Dec 20, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    309
    Elton Wang
    Dec 20, 2005
Loading...