Retrive data of the parent relation in datagrid

  • Thread starter Thread starter Jimmy Lu
  • Start date Start date
J

Jimmy Lu

Hi all,

I display the data of two tables by a relation in the DataGrid control. I
do not know how to retrive the data of the parent table, When I am browsing
the child table. Any idea will be appreciated?

Jimmy
 
Jimmy,

It depends very much what is the source of your datatable. However you can
foever find the datarow that you are using.

If you than use a datarelation to create your child tables, than you can
find in the datarow this method. However it is not needed for the parent
child approach that you use a datarelation. So let us start with assuming
that you do.

http://msdn.microsoft.com/library/d...fsystemdatadatarowclassgetparentrowstopic.asp

I hope this helps,

Cor
 
Back
Top