Hi,
I have a Dictionary:
And I'm trying to bind it to my grid:
So far it works, but when I try to add or edit new rows, I'm not able to edit any cell. I've tried every combination of DataMemberBinding, DataMemberPath, object creation in the AddingNewDataItem event, Anonymous types, etc. with no success.
Is there a way to bind a Dictionary to a grid and create new entries for it?
I have a Dictionary:
public Dictionary<string, Unit> Template { get; set; } |
And I'm trying to bind it to my grid:
myGrid.ItemsSource = myInstance.Template; |
So far it works, but when I try to add or edit new rows, I'm not able to edit any cell. I've tried every combination of DataMemberBinding, DataMemberPath, object creation in the AddingNewDataItem event, Anonymous types, etc. with no success.
Is there a way to bind a Dictionary to a grid and create new entries for it?