Hi,
I am creating grid at runtime.
in FieldLayoutInitialized i am creating unbound fields.
one sample unbound field is
UnboundField field = new UnboundField();
field.Name= "Testfield";
field.BindingPath = "Binding path";
FieldLayout fieldLayout;
fieldLayout.Fields.Add(field)
--------------------------------------------
But my requirement is i have a field which is calculated one so for that i created converter. coverter will ruturn sum of two values.
A3 = A1+A2;
If it is from XAML file we can write like
<Textbox.Value>
<MultiBinding Converter="{StaticResource ConvertnameClass}" Mode="OneWay"> <Binding Path="A1"/> <Binding Path="A2"/> </MultiBinding>
</Textbox.Value>.
field.Converter = coverter class object;field.ConverterParameter = ???;
if it is single binding we can send the field.BindingPath = "class prop value";
how can i send multiple binding values to converter from code behind when it is creating run time.
please help me out.
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Excuse me for the late reply, I have been looking into your requirement and XamDataGrid actually exposes such a build-in functionality through the XamCalculationManager as shown in our online documentation: http://help.infragistics.com/NetAdvantage/WPF/2011.2/CLR4.0/?page=Using xamCalculationManager with xamDataGrid.html
Please let me know if you require any further assistance on the matter.
Any reply on this plz