asp.net.ph

DataColumn.Table Property

System.Data Namespace   DataColumn Class


Returns the DataTable to which the column belongs to.

Syntax


Script DataColumn.Table = strTableName

Property Values


strTableName The DataTable that the DataColumn belongs to.

The property is read only with no default value.

Example

The following example returns the parent table of a DataColumn through its Table property.

private void GetTable ( DataColumn myColumn ) {
   // get the Table of the column.
   DataTable myTable = myColumn.Table;
   Response.Write ( "columns count: " + myTable.Columns.Count );
   Response.Write ( "rows count: " + myTable.Rows.Count );
}
  C# VB

See Also

DataColumn Members   DataTable 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