Hi there,
we have a problem with binding a collection to a combobox in the XamDataGrid (in C# code).
The XamDataGrid is populated with SalesLines. Each SalesLine has a IENumerable property. This list is different each salesLine. The active salesline (dataItem) ComboBox has to be populated with the IENumerable list of different units.
For example:
Record 1: SalesLine "Product 1" has to have a ComboBox with values ("pc","Box","Crate")
Record 2: SalesLine "Product 2" has to have a ComboBox with values ("m","cm","mm")
In our project we see the ItemsSource filled but the ComboBox displays an empty list.
Can you please provide us an example how we can achieve this in code (not in XAML).
Thank you very much.
Please, find the attached sample that shows how to set a combo editor on the field, where the itemssource is bound to a IEnumerable collection on each data item.
Let me know if you have any questions with this matter.
Anybody? :)