System.Data.DataRow.GetChildRows Method

Gets the child rows of a System.Data.DataRow using the specified DataRelation.RelationName of a System.Data.DataRelation.

Syntax

public DataRow[] GetChildRows (string relationName)

Parameters

relationName
The DataRelation.RelationName of the System.Data.DataRelation to use.

Returns

An array of System.Data.DataRow objects or an array of length zero.

Remarks

The System.Data.DataTable also contains a collection of System.Data.DataRelation objects that is returned by the DataTable.ChildRelations property.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0