asp.net.ph

DataRelation.ChildColumns Property

System.Data Namespace   DataRelation Class


Returns the child columns of this relation.

Syntax


Script [ DataColumn [ ] variable = ] DataRelation.ChildColumns

Property Value


variable An array of DataColumn objects representing the child columns of this DataRelation.

The property is read only with no default value.

Example

The following example gets the child columns of a DataRelation.

private void GetChildCols ( ) {
   // get the data relation
   DataRelation dr = myDataSet.Relations [ "CustomerOrders" ];
   // get the child columns.
   DataColumn [ ] childCols = dr.ChildColumns;
   // print the ColumnName of each column.
   int i;
   for ( i = 0; i < childCols.Length; i++ ) {
      Response.Write ( childCols [ ].ColumnName );
   }
}
  C# VB

See Also

DataRelation Members   DataColumn   ParentColumns 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