SetChildren

Sets the rows of a supplied, named parent/child relationship. If rows previously existed under this name, they will be returned to the caller.

Syntax

public void SetChildren(DataRow parentRow, string name, EnhancedDataTable newTable) 

Results

Returns the set of the names of the named parent/child relationships.

Example

EnhancedDataTable	childRows = dataTable1.GetChildren(parentRow, "child1");
dataTable2.SetChildren(otherParentRow, "child1", childRows);