I am using Binding
on the DataGrid
columns and have used the Navigation Properties
in the past with expected results. I am getting the other fields to show just not these two that use Navigation Properties
. The properties are spelled correctly as for the fields they represent. I am using Entity Framework
for backend via WCF
. When I check the CalenderChange object that is returning via the WCF function, I can see the Navigation Property
and the readonly
field is _Firstname
and has the value I expect. I tried changing the Binding to Binding="{Binding Personnel._Firstname}
without success.
Include it in the query:
db.CalenderChanges.Include("Personnel").Where({condition}).ToList()
XAML:
<sdk:DataGridTextColumn Header="First Name" Binding="{Binding Personnel.Firstname}" Width="100" />
<sdk:DataGridTextColumn Header="Last Name" Binding="{Binding Personnel.Lastname}" Width="100" />
What am I missing? Thanks...