asp.net.ph

DataRelation.ChildTable Property

System.Data Namespace   DataRelation Class


Returns the child table of this relation.

Syntax


Script [ DataTable variable = ] DataRelation.ChildTable

Property Value


variable A DataTable that is the child table of the relation.

The property is read only with no default value.

Example

The following example gets the child DataTable of a DataRelation.

private void GetChildTable ( ) {
   // get the data relation
   DataRelation dr = myDataSet.Relations [ "CustomerOrders" ];
   // get the child DataTable of the relation.
   DataTable tbl = dr.ChildTable;
   // print the name and number of rows of the child table.
   Response.Write ( tbl.TableName + ", " + tbl.Rows.Count );
}
  C# VB

See Also

DataRelation Members   DataTable   ParentTable Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph