DataRelation.ParentTable Property
.NET Framework 3.0
Gets the parent DataTable of this DataRelation.
Namespace: System.Data
Assembly: System.Data (in system.data.dll)
Assembly: System.Data (in system.data.dll)
The following example gets the parent DataTable of a DataRelation.
Private Sub GetParentTable() ' Get a DataRelation of a DataSet. Dim relation As DataRelation = _ DataSet1.Relations("CustomerOrders") ' Get the parent DataTable of the relation. Dim table As DataTable = relation.ParentTable ' Print the name and number of rows of the parent table. Console.WriteLine(table.TableName.ToString()) Console.WriteLine(table.Rows.Count.ToString()) End Sub
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.