I evaluate Syncfusion WinRT grid control continuing with this thread
http://www.syncfusion.com/support/forums/winrt/107968 .
I also need to create columns at runtime. I implemented with my DataTable class that use ExpandoObject as DataRow to implemente in WinRT.
I can bind the data to the grid. But when I click the column header, it throws exception at App.g.i.cs like this(in Chinese):
"Specified cast is not valid."
System.InvalidCastException: 无法将类型为“SampleTest.DataRow”的对象强制转换为类型“System.Dynamic.IDynamicMetaObjectProvider”。
at Syncfusion.Dynamic.DynamicHelper.GetValue(Object dyn, String propName)
at Syncfusion.Data.DynamicPropertiesProvider.GetValue(Object record, String propName)
at Syncfusion.UI.Xaml.Grid.GridDynamicPropertiesProvider.GetValue(Object record, String propName)
at Syncfusion.UI.Xaml.Grid.GridQueryableCollectionViewWrapper.<GetDynamicFunc>b__d(String propertyName, Object record)
at la
The exception type is InvalidCastException. What's wrong with my codes?
SampleTest_40dcdf58.zip