views:

135

answers:

1

I'm loading data from multiple xml files with different schemas into DataSets. I do have foreign key style relationships between the tables in each xml file but to date they're only enforced by code. I need to access data coming from multiple files and display it in a DataGridView.

Is there a way to merge the data from multiple files into a single DataSet?

Alternately can I write linq to dataset queries across multiple DataSets?

+1  A: 

Perhaps the DataSet.Merge() method will help you out? You can simply load the files as you're currently doing, and merge them together.

womp
If I'm correctly understanding the MSDN documentation that's for combining stuff with the same schema, not for packing two sets with different schemas into the same container.
Dan Neely