asp.net.ph

DataRow.GetParentRows Method ( String )

System.Data Namespace   DataRow Class


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

[ VB ]
Overloads Public Function GetParentRows ( _
   ByVal relationName As String _
) As DataRow ( )

[ C# ]
public DataRow [ ] GetParentRows (
   string relationName
);

[ C++ ]
public: DataRow* GetParentRows (
   String* relationName
 ) [ ];

[ JScript ]
public function GetParentRows (
   relationName : String
) : DataRow [ ];

Parameters

relationName
The RelationName of 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.
ArgumentException Occurs when the relation and row do not belong to the same table.

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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph