ComponentOne DataObjects for .NET
CreateChildView Method

C1.Data.2 Assembly > C1.Data Namespace > C1DataView Class : CreateChildView Method
The data set to which the parent row and the child view belong.
The name of the view relation (C1.Data.SchemaObjects.ViewRelation) between the parent and the child.
The parent row.
Creates and returns a C1DataView object containing child rows of a parent row.
Syntax
'Declaration
 
Public Shared Function CreateChildView( _
   ByVal dataSet As C1DataSet, _
   ByVal relationName As System.String, _
   ByVal parentRow As C1DataRow _
) As C1DataView
public static C1DataView CreateChildView( 
   C1DataSet dataSet,
   System.string relationName,
   C1DataRow parentRow
)

Parameters

dataSet
The data set to which the parent row and the child view belong.
relationName
The name of the view relation (C1.Data.SchemaObjects.ViewRelation) between the parent and the child.
parentRow
The parent row.
Remarks
This method can be used as an alternative to C1DataRow.GetChildRows for master-detail navigation. For example, you might want to use the resulting C1DataView as a data source for a data bound control.
See Also

Reference

C1DataView Class
C1DataView Members