How to correctly bind an object to a WPF DataGrid?

Posted by mbadawi23 on Stack Overflow See other posts from Stack Overflow or by mbadawi23
Published on 2010-06-09T23:14:57Z Indexed on 2010/06/09 23:22 UTC
Read the original article Hit count: 208

Filed under:
|

I'm trying to get a WPF DataGrid to work from a user control I'm building. Things seems to work fine. But I noticed this message in the Output window in the IDE:

System.Windows.Data Error: 39 : BindingExpression path error: 'Name' property not found on 'object' ''Object' (HashCode=18165668)'. BindingExpression:Path=Name; DataItem='Object' (HashCode=18165668); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String') System.Windows.Data Error: 39 : BindingExpression path error: 'Department' property not found on 'object' ''Object' (HashCode=18165668)'. BindingExpression:Path=Name; DataItem='Object' (HashCode=18165668); target element is 'TextBlock' (Name=''); target property is 'Text' (type 'String')

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpfdatagrid