c# - "'EditItem' is not allowed for this view" while I am using ExpandoObject as the row of datagrid in WPF -
I am trying to use And I think that until the cell is not edited it works fine. Here is the core code: The datagrid can display the line correctly, but if I click on the cell to edit it, then I get the error ¼ ?? I know what's wrong with it. We should use it: dg.ItemSources = new dynamic [] {expandoObject} And it works now! What a stupid boy! expandoObject as a line for the datagrid in WPF I am
ExpandoObject line = new ExpandoObject (); ((Id works & lt; string, object & gt;) line). Add (strale column, strue); Dg.Items [0] = Row;
'EditItem' is not allowed for this view "will be displayed .
Comments
Post a Comment