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
 

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

Back
Top