I am using this to define dynamic query IQueryable
and set the result as itemssource
of wpf datagrid.
I get this error in output window:
System.Windows.Data Error: 40 : BindingExpression path error: 'DynamicProp1' property not found on 'object' ''DynamicType1' ....
when I try it with dynamic
keyword I get success.
dynamic d = item;
var v = d.DynamicProp1;//works