Binding to nested array property

1 posts, 0 answers
  1. dex
    dex avatar
    1 posts
    Member since:
    Jul 2011

    Posted 05 Oct 2011 Link to this post

    Hi,

    I'm using Silverlight, EF 4.1 and DomainServices

    I have such a column in my Silverlight GridView:

    <telerikGridView:GridViewDataColumn Header="Product" DataMemberBinding="{Binding Path=product.product_lang[0].name, Mode=TwoWay, ValidatesOnExceptions=True, NotifyOnValidationError=True, ValidatesOnDataErrors=True}" SortingState="Ascending" UniqueName="Product" IsReadOnly="True">
      
                                    <telerikGridView:GridViewDataColumn.CellTemplate>
                                        <DataTemplate>
                                            <TextBlock Text="{Binding Path=product.product_lang[0].name}" />
                                        </DataTemplate>
                                    </telerikGridView:GridViewDataColumn.CellTemplate>
                                </telerikGridView:GridViewDataColumn>

    But it doesn't show data.

    On another column I use Path=product.manufacturer.name which works well, so I think there is something wrong with my Path.
    Path=product.product_lang.Count shows 1 also.

    Can anyone help me please  
Back to Top