The problem is that datagrid does not populate product data, and just shows headers.
Update the example code with following snippet:
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
var context = new ProductContext();
grdProducts.ItemsSource = context.Products;
context.Load(context.GetProductQuery());
}
}
No comments:
Post a Comment