Q: DataView

G

Geoff Jones

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top