DataRelation::ChildTable Property
.NET Framework (current version)
Gets the child table of this relation.
Assembly: System.Data (in System.Data.dll)
The following example gets the child DataTable of a DataRelation.
Private Sub GetChildTable() ' Get a DataRelation of a DataSet. Dim relation As DataRelation = _ DataSet1.Relations("CustomerOrders") ' Get the child DataTable of the relation. Dim table As DataTable = relation.ChildTable ' Print the name and number of rows of the child table. Console.Writeline("Name: {0} Rowcount: {1}", _ table.TableName, table.Rows.Count.ToString()) End Sub
.NET Framework
Available since 1.1
Available since 1.1
Show: