NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataRelation.ChildTable

Gets the child table of this relation.

[Visual Basic]
Overridable Public ReadOnly Property ChildTable As DataTable
[C#]
public DataTable ChildTable {virtual get;}
[C++]
public: __property virtual DataTable* get_ChildTable();
[JScript]
public function get ChildTable() : DataTable;

Property Value

A DataTable that is the child table of the relation.

Example [Visual Basic]

The following example gets the child DataTable of a DataRelation.

[Visual Basic]

Private Sub GetChildTable()
   Dim t As DataTable
   Dim dr As DataRelation
   ' Get a DataRelation of a DataSet.
   dr = DataSet1.Relations("CustomerOrders")
   ' Get the child DataTable of the relation.
   t = dr.ChildTable
   ' Print the name and number of rows of the child table.
   Debug.Print t.TableName, t.Rows.Count
End Sub

See Also

DataRelation Class | DataRelation Members | System.Data Namespace | DataTable | ParentTable