wpf - Binding a nested list into addition columns in xaml -


i have collection binding datagrid (the wpf extended toolkit datagrid). fine standard binding want bind nested list in collection additional columns.

for example person name age birthday phonenumbers[]

where name, age, , person bind person might have many phone numbers use list instead of single object. strictly speaking "phonenumbers" type stores information "home" or "mobile" , want header in new column. data grid like

name age birthday home mobile work

john 42 1/2/1234 1234 5678 9012

etc. dont know in advance how long nested list be. clear learning purposes trying figure out if doable in pure xaml. understand add columns @ runtime in code behind. not sure possible however.

if understand, think phone numbers collection cannot shown side side other columns, instead need manage using row details in datagrid


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -