NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataColumn.Table

Gets the DataTable to which the column belongs to.

[Visual Basic]
Public ReadOnly Property Table As DataTable
[C#]
public DataTable Table {get;}
[C++]
public: __property DataTable* get_Table();
[JScript]
public function get Table() : DataTable;

Property Value

The DataTable that DataColumn belongs to.

Example [Visual Basic]

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

[Visual Basic]

Private Sub GetTable()

   Dim myTable As DataTable
   Dim myColumn As DataColumn
   myTable = DataSet1.Tables("Suppliers").Columns("CompanyName")
   Console.WriteLine("columns", myTable.Columns.Count)
   Console.WriteLine("rows", myTable.Rows.Count)
End Sub

See Also

DataColumn Class | DataColumn Members | System.Data Namespace | DataTable