Hello,
sorry for digging up an old message but I have a similar problem.
I used to have a DataGrid with a nested property like that and it worked fine:
<
DataGrid
ItemsSource
=
"{Binding SelectedItem.ApprovalPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
SelectedItem
=
"{Binding SelectedPathUser}"
AutoGenerateColumns
=
"False"
CanUserDeleteRows
=
"False"
Height
=
"100"
IsReadOnly
=
"True"
>
<
DataGrid.Columns
>
<
DataGridTextColumn
Header
=
"Name"
Binding
=
"{Binding Path=User.DisplayName}"
Width
=
"*"
/>
<
DataGridTextColumn
Header
=
"Order"
Binding
=
"{Binding Order, UpdateSourceTrigger=PropertyChanged}"
Width
=
"45"
/>
</
DataGrid.Columns
>
</
DataGrid
>
I switched to RadGridView, trying to achieve the same functionality but I got an error that it cannot find the specified property!
<
telerik:RadGridView
ItemsSource
=
"{Binding SelectedItem.ApprovalPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
SelectedItem
=
"{Binding SelectedPathUser}"
AutoGenerateColumns
=
"False"
CanUserDeleteRows
=
"False"
Height
=
"100"
IsReadOnly
=
"True"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Name"
DataMemberBinding
=
"{Binding User.DisplayName}"
Width
=
"*"
/>
<
telerik:GridViewDataColumn
Header
=
"Order"
DataMemberBinding
=
"{Binding Order, UpdateSourceTrigger=PropertyChanged}"
Width
=
"45"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
While debugging I found out that it is trying to find the property "DisplayName" from the selected item object and to from the nested property of User!
Am I doing something wrong with the binding or it is a problem with bindings?