Binding a GridView to a Dynamic or ExpandoObject object

后端 未结 6 479
离开以前
离开以前 2020-12-03 03:43

I\'m using Rob Conery\'s Massive ORM, and I haven\'t been able to bind the resulting ExpandoObject to a GridView.

I did find another Stacko

6条回答
  •  鱼传尺愫
    2020-12-03 04:01

    If we are talking GridView (meaning not WPF) then impromptu can proxy an expando to a poco given an interface. Say we have a list of expando's you can convert them to poco's:

    IEnumerable listOfPocos
           = Impropmtu.AllActLike(listOfExpandos, typeof(INotifyPropertyChanged));
    

提交回复
热议问题