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;
A DataTable that is the child table of the relation.
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
DataRelation Class | DataRelation Members | System.Data Namespace | DataTable | ParentTable