Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi experts

a collection of a dynamic object, i want to bind it to a datagird but it dosen't work.

C#
List<dynamic> items = new List<dynamic>();


and binding code:
C#
this.DataGird.ItemsSource = items;
this.DataGird.Items.Refresh();

(datagird shows nothing)

I want the datagird be auto generate column

what should I do for this problem?
Posted

1 solution

So far I know dynamic are not capable to define the bindable properties at runtime with full type knowledge. Please have a look on that if it can help you :)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900