Hi,
Is it possible in field of a xamdatagrid to bind it with two values of binded object fields.
ThanksAlex
I have done it. actually i was making a mistake in accessing nestedobject which I solved by this ' Path=Value.xyz'
Hello,
Here is a great article for binding to any kind of data source:
http://help.infragistics.com/Help/NetAdvantage/WPF/2008.2/CLR3.X/html/WPF_Data_Binding.html
According to me, I think it would be better to move the style to the XamDataGrid.Resources section or the Window.Resource one, so the style could be reusable and the code neat.
Please take a look at it and review the binding expressions. Hope this helps you.
Thanks For replying well i am trying to make a control template as given below in which i want to bind two nested objects with a single filed of xamdatagrid.
<igDP:UnboundField.Settings> <igDP:FieldSettings AllowResize="True"> <igDP:FieldSettings.CellValuePresenterStyle> <Style TargetType="{x:Type igDP:CellValuePresenter}" > <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type igDP:CellValuePresenter}"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding RelativeSource={RelativeSource TemplatedParent},Path=FinishingPosition}" /><TextBlock Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value }"/>
</StackPanel> </ControlTemplate> </Setter.Value> </Setter> </Style> </igDP:FieldSettings.CellValuePresenterStyle> </igDP:FieldSettings> </igDP:UnboundField.Settings>
well i am getting problem in binding of data.is there any mistake in my syntax or its not posible to bind in such a way.
thanks.
Would you please give me some more information and details of what you mean and trying to implement.
Thanks