I am trying to use expandoObject
as a row for the datagrid in WPF.
And I find it works fine until the cell is edited.
Here is the core code:
ExpandoObject row = new ExpandoObject();
((IDictionary<string, Object>)row).Add(strColumnId, strValue);
dg.Items[0] = row;
The datagrid can display the row correctly, but if I click the cell to edit it, I get the error
'EditItem' is not allowed for this view" will be displayed
.