Reputation: 1060
[c# linq]
i have 2 datasources, 1 coming from an xml document and 1 coming from an sql server database, both return an IEnumerable<EventsDetails>
is it possible to bind both of these lists to a single repeater?
Upvotes: 1
Views: 1035
Reputation:
You're probably looking for something like this, if you want to use LINQ:
var both= list1.Union(list2);
Then both
is your data source.
Upvotes: 2
Reputation: 5144
Create a new list containing both. Or an object implementing IEnumetator which first returns elements from the first, then from the second list.
Upvotes: 1