I attached a sample project demonstrating how you need to bind the GridViewComboBoxColumn
. In order to make the example work we changed a little the provided models ( OrderModel
- added OrderModelId
- added OrderItemId
property). Those changes were necessary if you need to connect the values of the UtOrderItem
with the OrderModel
In the sample project you can see that in the XAML definition for GridViewComboBoxColumn
we are using the ItemsSourceBinding
property, because it allows you to bind the ItemsSource of the ComboBox to a property of the data source item(OrderItems). Then you need to bind the DataMemberBinding property to OrderItemId and SelectedValueMemberPath property to OrderModelId.
Please examine the sample project and let us know if this helps.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.