I have been trying to bind Dynamic data with Infragistics SL5 grid, by using the ICustomTypeProvider interface exposed in SL5 and following the approach mentioned in url - http://blogs.msdn.com/b/eternalcoding/archive/2011/04/26/dynamic-properties-in-silverlight-5.aspx
This seems to work fine for SL5 data grid, but unfortunately Infragistics SL5 grid doesn't seems to support that. Infragistics grid is not querying the GetCustomType method of ICustomTypeProvider, to get the properties information at runtime.
Please let me know if I am missing anything OR is this still an open requirement with Infragistics SL 5 suite.
I have tried this on latest Infragistics SL5 12.1 Release as well, but its still the same.
Thanks Stefan for the reply !!!
I agree that Data Binding to Dynamic Objects is broken and is a submitted bug to Microsoft.
What I am looking for is data binding using System.Reflection.ICustomTypeProvider interface available in SL5. This interface exposes Type GetCustomType method, which a class can implement to return a custom type, which can be used to show dynamic column information.
Silverlight Grid supports binding through this interface, but IG SL5 Grid does not.
In short, I am trying to use the approach mentioned in the below url to bind a infragistics 12.1 grid -
http://blogs.msdn.com/b/silverlight_sdk/archive/2011/04/26/binding-to-dynamic-properties-with-icustomtypeprovider-silverlight-5-beta.aspx
Hello,
Thank you for your post. I have been looking into it and I have created a sample project for you which shows how to use XamGrid with DynamicObjects. Also I can say that there is submitted bug for DataBinding to DynamicObjects to MS here:
http://connect.microsoft.com/VisualStudio/feedback/details/522119/databinding-to-dynamic-objects-is-broken#
which is still active. The workarounds provided there for the SL DataGrid will work for the XamGrid also. You should add UnboundColumns for each new property you add to the DynamicObject.
Hope this helps you.