Hello,
In my application I get the resources from a database, usually I assign the corresponding datatable as the ResourceStorage.DataSource.
The problem is, in certain cases I have to do some complex filtering on the resources.
I do that filtering using Linq.
I iterate over the DefaultDataView and select the corresponding DataRowView from my Resource datatable.
My problem is, it seems the ResourceStorage.DataSource doesn't support this kind of scenario.
When I assign my IEnumerable<DataRowView> to the DataSource property, no resources are detected.
If I do the same kind of filtering but I create an anonymous type and return an IEnumerable, then it works, but in my case it's not pratical.
Is there something to do to make the IEnumerable<DataRowView> method work ?
I've attached a simple projet showing the problem.
In the code, you can find two lines to switch from one IEnumerable to the other.
Thank you for your help.
Best regards.