Hi,
I have a grid which binds to an EntityModelDataSource which is formed from 2 entities:
PERSON[ID, NAME, SURNAME]
EMPLOYEE[EMPLOYEE_ID, PERSON_ID, etc]
An employee has a PERSON and only one.
If I bind a column to DataMemberBinding="{Binding EMPLOYEE_ID}" the data is displayed ok
If I bind to DataMemberBinding="{Binding PERSON.NAME} no data is displayed.
The data is loaded using ria like this:
public IQueryable<Employee> GetEmployees()
{
return this.ObjectContext.Employees.Include("PERSON").Where(x => x.PERSON_ID < 1000).OrderBy(x => x.PERSON_ID);
}
How can I bind the column to the PERSON.NAME member?
Thanks,
Cristian
I have a grid which binds to an EntityModelDataSource which is formed from 2 entities:
PERSON[ID, NAME, SURNAME]
EMPLOYEE[EMPLOYEE_ID, PERSON_ID, etc]
An employee has a PERSON and only one.
If I bind a column to DataMemberBinding="{Binding EMPLOYEE_ID}" the data is displayed ok
If I bind to DataMemberBinding="{Binding PERSON.NAME} no data is displayed.
The data is loaded using ria like this:
public IQueryable<Employee> GetEmployees()
{
return this.ObjectContext.Employees.Include("PERSON").Where(x => x.PERSON_ID < 1000).OrderBy(x => x.PERSON_ID);
}
How can I bind the column to the PERSON.NAME member?
Thanks,
Cristian