WPF DataGrid Binding List of Object that contains Dictionary<string,string> in XAML -
i'm trying figure out how display data dictionary property of list inside wpf datagrid gridviewcolumn
all examples find appear map list of simple entities can . traversed {binding answers.title}
. mine more {binding answers["title"]}
doesn't work in xaml
i'm missing obvious here. ideas?
edit: list contains entity contains dictionary. answers dictionary in entity.
if understand correctly, have dictionary datacontext, , need display either key or value listboxitem. can try following :
here data dictionary can change displaymemberpath="key", if need display key. can used display data property while complex object in datacontext.
Comments
Post a Comment