Hi,
I am using a query that returns an anonymous type. My query is:
Dim pQuery As EntityQuery = From p In theManager.Products _
Select New With { _
p.ProductNumber, p.Name}
I am binding to a DataGrid in the callback using this code:
productGrid.ItemsSource = args.Result
My DataGrid is defined as follows:
<data:DataGrid x:Name="productGrid"
AutoGenerateColumns="False"
Height="350">
<data:DataGrid.Columns>
<data:DataGridTextColumn Header="Product ID"
Binding="{Binding ProductNumber}"/>
<data:DataGridTextColumn Header="Product Name"
Binding="{Binding Name}"/>
</data:DataGrid.Columns>
</data:DataGrid>
The result is not working. The DataGrid is filled with something (the rows get narrower), but there is not text. Any idea what I am doing wrong?
bill b