This is a migrated thread and some comments may be shown as answers.

Binding to nested array property

0 Answers 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
dex
Top achievements
Rank 1
dex asked on 05 Oct 2011, 10:31 AM
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  

No answers yet. Maybe you can help?

Tags
GridView
Asked by
dex
Top achievements
Rank 1
Share this question
or