Finding Control in Parent Datagrid

D

Dave

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,439
Members
44,829
Latest member
PIXThurman

Latest Threads

Top