Why isn't my WPF Datagrid showing data?

后端 未结 5 2011
借酒劲吻你
借酒劲吻你 2020-12-16 21:49

This walkthrough says you can create a WPF datagrid in one line but doesn\'t give a full example.

So I created an example using a generic list and connected it to th

5条回答
  •  [愿得一人]
    2020-12-16 22:23

    I was trying to figure out why the identical code as given by JohnB's answer did not work for me, and the problem was that the model object (Customer) did not have properties, but fields. Converting them to properties fixed my problem.

提交回复
热议问题