You need to use
MultiBinding
with the combination of Converters in this case.
It would be complex on your case. But
MultiBinding
is the way to go.
- Add
MultiBinding
and binding MainCol and DetailCol
- Write a Converter to read both and return as some class which has properties of what you want like,
FinalData class:
- ID (MainCol)
- Name (MainCol)
- Description (DetailCol)
- Amount (DetailCol)
References:
Silverlight MultiBindings, How to attach multiple bindings to a single property.[
^]
Even though it is in Silverlight, the concept is same.