private void QueryResultGrid_LoadingDataSource(object sender, Newegg.Oversea.Silverlight.Controls.Data.LoadingDataEventArgs e) { facade.QueryKeyWordsForProduct(QueryResultGrid.QueryCriteria as KeyWordsForProductQueryFilter, e.PageSize, e.PageIndex, e.SortField, (s, args) => { if (args.FaultsHandle()) { return; } gridVM = DynamicConverter <KeyWordsForProductQueryVM> .ConvertToVMList <List <KeyWordsForProductQueryVM> >(args.Result.Rows); QueryResultGrid.ItemsSource = gridVM; QueryResultGrid.TotalCount = args.Result.TotalCount; }); }