Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing child rows for current parent row
Message
De
23/08/2005 08:38:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/08/2005 07:42:42
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01042854
Message ID:
01042865
Vues:
19
>Hi,
>
>Does anyone know how to get a child businessobject to run its hookparentnavigating (or equivilant) method in code? I am currently creating an xml file from some data and to do this I use a parent-child businessobject arrangement.
>
>What I need is this : when I am working on a row on the parent, then the rows belonging to that parent row should be avaliable in the child business object's dataset. Currently I can only find the child rows from the first parent row.
>
>I currently work on the parent rows like this :
>
>foreach(DataRow row in bizObj.GetCurrentDataSet().Tables[bizObj.CurrentTableName].Rows){
>
>// need to get a handle on the child rows for the current DataRow
>
>}
>
>My appologies if this has been covered before but I cannot find any solution to it.
>
>Regards,
>
>Andrew


DataRow[] childRows = row.GetChildRows(DataRelation);
DataRow[] childRows = row.GetChildRows("relationname");
DataRow[] childRows = row.GetChildRows(DataRelation,DataRowVersion);
DataRow[] childRows = row.GetChildRows("relationname",DataRowVersion);

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform