protected void storeSPDayReport_Refresh(object sender, StoreRefreshDataEventArgs e) { List <SPDayReportWrapper> spDayReports = SPDayReportWrapper.QueryReport(dfStart.SelectedDate, dfEnd.SelectedDate); storeSPDayReport.DataSource = spDayReports; storeSPDayReport.DataBind(); this.lblTotalTotalCount.Text = spDayReports.Sum(p => p.TotalCount).ToString(); this.lblTotalTotalSuccessCount.Text = spDayReports.Sum(p => p.TotalSuccessCount).ToString(); this.lblTotalInterceptCount.Text = spDayReports.Sum(p => p.InterceptCount).ToString(); this.lblTotalDownTotalCount.Text = spDayReports.Sum(p => p.DownTotalCount).ToString(); this.lblTotalDownSycnSuccess.Text = spDayReports.Sum(p => p.DownSycnSuccess).ToString(); this.lblTotalDownSycnFailed.Text = spDayReports.Sum(p => p.DownSycnFailed).ToString(); this.lblTotalDownNotSycn.Text = spDayReports.Sum(p => p.DownNotSycn).ToString(); }