0

why binding with list doesn't work?

when i bind itemsource with a list ..it does't work..why? like..datagrid.datacontext=MyList; but when i keep that list inside a class.. Myclass { ObserableCollection MyList } Myclass myclass=new myclass(); datagrid.datacontext=myclass; it works...

5th Mar 2018, 7:24 PM
Somnath Ghosh
Somnath Ghosh - avatar
2 odpowiedzi
+ 1
datacontext cannot bind myclass type
5th Mar 2018, 7:41 PM
Hasan Jafarov
Hasan Jafarov - avatar
0
can u elaborate ?
3rd Apr 2018, 5:30 PM
Somnath Ghosh
Somnath Ghosh - avatar