By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,990 Members | 1,990 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,990 IT Pros & Developers. It's quick & easy.

Q: DataView

P: n/a
Hi

What is the best way for me to create a dataview based on a subset of
another dataview? That is, I have one dataview, say FirstDataView, which
contains some rows which I want in another dataview, say SecondDataView.

What is the most efficient way to accomplish this?

Ta

Geoff
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Geoff,
Didn't I answer this one the other day?

You can only create DataView from a DataTable itself or
DataRowView.CreateChildView, the second requires a DataRelation defined.

With effort you can build a row filter based on values in the first view,
however I suspect that will be more trouble then its worth.

I would simply use the first view and manually select the rows I was
interested in.

Hope this helps
Jay

"Geoff Jones" <ge***@NODAMNSPAM.com> wrote in message
news:40***********************@news.dial.pipex.com ...
Hi

What is the best way for me to create a dataview based on a subset of
another dataview? That is, I have one dataview, say FirstDataView, which
contains some rows which I want in another dataview, say SecondDataView.

What is the most efficient way to accomplish this?

Ta

Geoff

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.