asp.net.ph

DataRow.SetParentRow Method ( DataRelation, DataRow )

System.Data Namespace   DataRow Class


Sets the parent row of a DataRow using a specified DataRow and DataRelation object.

[ VB ]
Overloads Public Function SetParentRow ( _
   ByVal parentRow As DataRow _
   ByVal relation As DataRelation, _
)

[ C# ]
public void SetParentRow (
   DataRow parentRow,
   DataRelation relation
);

[ C++ ]
public: void SetParentRow (
   DataRow* parentRow,
   DataRelation* relation
);

[ JScript ]
public function SetParentRow (
   parentRow : DataRow,
   relation : DataRelation
);

Parameters

parentRow
The new parent DataRow.
relation
The DataRelation to use.

Exceptions


Exception Type Condition
RowNotInTableException Occurs when the row does not belong to a table.
ArgumentNullException Occurs when the row is a null reference.
ArgumentException Occurs when the relation does not belong to this table's parent relations.
InvalidConstraintException Occurs when the relations's child table isn't the table the row belongs to.

See Also

DataRow Members   DataRow.SetParentRow Overload List   GetParentRow 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