This question is locked. New answers and comments are not allowed.
Hi!
I've a very simple problem but apparently GridViewDataColumn is not part of FrameworkElement and causes the MultiBinding to crash.
What I want to do is pretty simple. I have 2 'integer' columns (side by side) and I want to put a different background/border on these cells if the value inside it are not the same.
I tried that:
I know I could simply bind on the entire object and check the 2 properties in a converter BUT what if my values are changing in code-behind???? The object will not be notified of these changes and the grid will not be updated!
Do you have a solution for this kind of problem?
Thanks,
Bastien
I've a very simple problem but apparently GridViewDataColumn is not part of FrameworkElement and causes the MultiBinding to crash.
What I want to do is pretty simple. I have 2 'integer' columns (side by side) and I want to put a different background/border on these cells if the value inside it are not the same.
I tried that:
<telerik:GridViewDataColumn Header="Proposed" DataMemberBinding="{Binding ProposedQuantity, Mode=TwoWay}" SortMemberPath="ProposedQuantity" Width=".15*"> <local:BindingUtil.MultiBindings> <local:MultiBindings> <local:MultiBinding TargetProperty="Background" Converter="{StaticResource valuesToBackgroundColorConverter}"> <local:MultiBinding.Bindings> <local:BindingCollection> <Binding Path="RequestedQuantity" /> <Binding Path="ProposedQuantity" /> </local:BindingCollection> </local:MultiBinding.Bindings> </local:MultiBinding> </local:MultiBindings> </local:BindingUtil.MultiBindings> </telerik:GridViewDataColumn>I know I could simply bind on the entire object and check the 2 properties in a converter BUT what if my values are changing in code-behind???? The object will not be notified of these changes and the grid will not be updated!
Do you have a solution for this kind of problem?
Thanks,
Bastien