asp.net.ph

DataRow.GetParentRows Method ( DataRelation )

System.Data Namespace   DataRow Class


Returns the parent rows of a DataRow using a specified DataRelation object.

[ VB ]
Overloads Public Function GetParentRows ( _
   ByVal relation As DataRelation _
) As DataRow ( )

[ C# ]
public DataRow [ ] GetParentRows (
   DataRelation relation
);

[ C++ ]
public: DataRow* GetParentRows (
   DataRelation* relation
 ) [ ];

[ JScript ]
public function GetParentRows (
   relation : DataRelation
) : DataRow [ ];

Parameters

relation
The DataRelation to use.

Return Value

An array of DataRow objects ( or an array of length zero ).

Exceptions


Exception Type Condition
RowNotInTableException Occurs when the row does not belong to the table.
ArgumentNullException Occurs when the relation is a null reference.
ArgumentException Occurs when the relation and row do not belong to the same table.
VersionNotFoundException Occurs when the row does not have this version of data.

Remarks

In a DataSet, the collection of all DataRelation objects for the data set is returned by the Relations property. The DataTable also contains a collection of DataRelation objects, returned by the ParentRelations property.

See Also

DataRow Members   DataRow.GetParentRows Overload List Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note