The following blog post may be of use to you:

http://codebetter.com/blogs/brendan.tompkins/archive/2006/05/11/144539.aspx

It's titled "An ObjectDataSource/GridView Adapter for Business Entity Collections", and in the article he uses the reflection to adapt a POCO/PI object into subclass of datatable. I haven't used it, but it's an interesting approach.

Cheers,

Peter

Riccardo d'Errico wrote:

I understand this...
Unfortunately not all the components I use accepts a direct binding to an IList. As an example some time ago I asked Telerik support if it was possible to bind directly to their panel bar with an IList. The answer was at that time (2 months ago) that it was not possible but it could be done iterating the ilist and building the panelbar items programmatically. Plus I considered that the datatable was a superset of an IList as it direcly exposed other features (like sorting and filtering). It would be possible to add to the wishlists a QueryForDataSet or QueryForDataTable methods for the data mapper?


Reply via email to