asp.net.ph

DataRow.GetChildRows Method ( DataRelation, DataRowVersion )

System.Data Namespace   DataRow Class


Returns a version of the child rows of a DataRow using a specified DataRelation object.

[ VB ]
Overloads Public Function GetChildRows ( _
   ByVal relation As DataRelation, _
   ByVal version As DataRowVersion _
) As DataRow ( )

[ C# ]
public DataRow [ ] GetChildRows (
   DataRelation relation,
   DataRowVersion version
);

[ C++ ]
public: DataRow* GetChildRows (
   DataRelation* relation,
   DataRowVersion version
 ) [ ];

[ JScript ]
public function GetChildRows (
   relation : DataRelation,
   version : DataRowVersion
) : DataRow [ ];

Parameters

relation
The DataRelation to use.
version
One of the DataRowVersion values specifying the version of the data to get. Possible values are Default, Original, Current, and Proposed.

Return Value

An array of DataRow objects.

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 the requested DataRowVersion.

Remarks

Use the HasVersion property to determine if the desired DataRowVersion exists.

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

See Also

DataRow Members   DataRow.GetChildRows 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