I have a very simple data source, a System.Collection that contains 'person' records. The person class has 2 properties, one is a string and the the other is a bool field.
This binds as expected in the XamGrid and I get a XamCheckBox for my boolean field. However, when I change the value of the check box I get the following exception in the output window "System.Windows.Data Error: 8 : Cannot save value from target back to source. BindingExpression:Path=IsChecked; DataItem='XamCheckEditor' (Name=''); target element is 'ValueEditorCheckBox' (Name='PART_FocusSite'); target property is 'IsChecked' (type 'Nullable`1') ArgumentException:'System.ArgumentException: oldValue has incorrect type for this property"
If I change my values programatically the check boxes in the grid reflect the changes so I know I am bound to the correct fields.I get this same behavior whether I use automatically generated fields or manually generated fields.
Did I miss something in my class maybe?
Thanks!!
Hello,
I tried to reproduced the scenario but I could not get the error. Please attach a sample project ( illustrating the problem ) to take a closer look.
Alex.
Here is a sample. Also, I get a stack overflow when I try to set the name field through the grid.