Can I convert a dataview to a dataset

  • Thread starter Thread starter Amos
  • Start date Start date
A

Amos

I have X dataset and I queried the data with a dataview. Would it be
possible to copy the data in the dataview to the dataset? This way, another
query would only involve the data from the last query in the dataview (not
the whole dataset).

Thanks.
Amos
 
Amos,

I don't quite understand what you are trying to do. If you have a
DataView, then this is a view on the underlying DataTable. If you want to
create another view, then you can attach the view to the table and configure
that view differently.

Hope this helps.
 
I'd like to be able to copy the data in the dataview to the existing
dataset. For example, the initial dataset has 30 records. When I query it
with the dataview, the dataview may only filter 10/30 records. I'd like to
take those 30 records in the datawview and copy them to the dataset.
Or can I requery the dataview?

Thanks.

Nicholas Paldino said:
Amos,

I don't quite understand what you are trying to do. If you have a
DataView, then this is a view on the underlying DataTable. If you want to
create another view, then you can attach the view to the table and configure
that view differently.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Amos said:
I have X dataset and I queried the data with a dataview. Would it be
possible to copy the data in the dataview to the dataset? This way, another
query would only involve the data from the last query in the dataview (not
the whole dataset).

Thanks.
Amos
 
Back
Top