I'm looking for a way to debug this problem I'm having with binding expressions in my DataGrid.
I've got a data grid that I create columns for on the fly in c# code. I create DataGridTemplateColumns based on a data class that has an internal dictionary and implements ICustomTypeDescriptor. I create columns for each of the dictionary's keys.
This all works just dandy, except for one thing. My output window gets a bunch of these (one for each property):
System.Windows.Data Error: 39 : BindingExpression path error: 'ID' property not found on 'object' 'Object' (HashCode=17704875)'. BindingExpression:Path=ID; DataItem='Object' (HashCode=17704875); target element is 'TextBlock' (Name='); target property is
'Text' (type 'String')
To debug, I created a converter and removed the Path. Usually, when I stop the debugger in the converter, the "object" parameter is what I would expect - an instance of my data object. However, sometimes (as above), the "object" is just an "object"
with no further defined type (thus causing this debug output). I'm a bit at a loss as to why the "object" in the converter is not an instance of my data object.
Again, all the code seems to work fine. The data g
View Complete Post