public void FillDG() { List <ReturnDashboardList> returnDashboardListsToday = dr.FillDashboardList(DateTime.Today); List <ReturnDashboardList> returnDashboardListsTomorrow = dr.FillDashboardList(DateTime.Today.AddDays(1)); List <ReturnDashboardList> returnDashboardListsDelay = dr.FillDashboardList(DateTime.Today.AddDays(-1)); foreach (ReturnDashboardList returnDashboardList in returnDashboardListsToday) { this.dgToday.Items.Add(returnDashboardList); } foreach (ReturnDashboardList returnDashboardList in returnDashboardListsTomorrow) { this.dgTomorrow.Items.Add(returnDashboardList); } foreach (ReturnDashboardList returnDashboardList in returnDashboardListsDelay) { this.dgDelay.Items.Add(returnDashboardList); } }