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!

DataTable.DataSet

Gets the DataSet that this table belongs to.

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

Property Value

The DataSet that this table belongs to.

Example [Visual Basic]

The following example returns the parent DataSet of a given table through the DataSet property.

[Visual Basic]

Private Sub GetDataSetFromTables()
   Dim t As DataTable
   ' Get the DataTabe of a DataGrid
   t = DataGrid1.DataSource
   ' Get the DataSet
   Dim dset As DataSet
   dset = t.DataSet 
End Sub

See Also

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