I have a element bound to a Projects object. The Project object has a ClientId property that is linked to a Client object. The Client object has two properties; the Id property which is linked to the ClientId property and a Name property. I can easily display the ClientId from the Project object, but I want to display the Name property from the Client object.
I have tried using a element with a DataSource set to a collection of Clients. I have set the Item* attributes with values from the Clients object. The Value attribute (which is required and what is displayed) cannot see Clients object so I cannot display the value in the Name property in the Client object.
from ViewModel both properties are correctly initialized and filled
public BusinessPackDataSet<MasonAndHangerWebApi.Models.BimCimData.Project> Projects { get; set; }
public IList<MasonAndHangerWebApi.Models.BimCimData.Client> Clients { get; set; }
from View
<bp:GridView DataSource="{value: Projects}" ...>
...
<bp:GridViewComboBoxColumn DataSource="{value: Clients}"
HeaderText="Client"
ItemKeyBinding="{value: _parent.ClientId}"
ItemTextBinding="{value: Name}"
ItemValueBinding="{value: Name}"
Value="{value: Cannot see values from the Clients datasource }" />
...
</bp:GridView>
What do I need to do to display the Name value from the Client object in this GridView?