Groups | Blog | Home
all groups > vb.net data > june 2005 >

vb.net data : Filtering dataset.



Srinivas
6/22/2005 5:00:03 PM
Hi,
I have a DataSet with a couple of datatables in it. I would like to
filter the datatables in this dataset with a particular condition and assign
these data tables to a new Dataset. So the resultant DataSet is a subset of
the original Data Set. Please let me know the best way of doing this.

Thanks,
Srinivas


Ken Tucker [MVP]
6/23/2005 3:39:20 AM
Hi,

Create a dataview from the data. Use the dataviews's rowfilter
method to filter the data.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vbcode/html/vbtskcodeexamplefilteringdataindataview.asp

Ken
-------------------
[quoted text, click to view]
Hi,
I have a DataSet with a couple of datatables in it. I would like to
filter the datatables in this dataset with a particular condition and assign
these data tables to a new Dataset. So the resultant DataSet is a subset of
the original Data Set. Please let me know the best way of doing this.

Thanks,
Srinivas



AddThis Social Bookmark Button