public void LoadReceiptsData() { var receiptsByOrder = (ordersBS.Count == 0 ? null : receiptsService.GetReceipts().Where(m => m.OrderId == ((OrdersDTO)ordersBS.Current).OrderId)); receiptsBS.DataSource = receiptsByOrder; this.receiptsGrid.DataSource = receiptsBS; }
private void LoadReceiptsData() { receiptsByOrder = receiptsService.GetReceipts().Where(m => m.OrderId == ((OrdersDTO)Item).OrderId).ToList(); receiptsBS.DataSource = receiptsByOrder; receiptsGrid.DataSource = receiptsBS; receiptsGridView.BeginSummaryUpdate(); receiptsGridView.EndSummaryUpdate(); }