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;
The DataSet that this table belongs to.
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
DataTable Class | DataTable Members | System.Data Namespace | DataSet