protected void storeData_Refresh(object sender, StoreRefreshDataEventArgs e) { DataTable dt = SPDayReportWrapper.GetProvinceCountReport(ChannleID, this.SPClientID, Convert.ToDateTime(this.StartDate), Convert.ToDateTime(this.EndDate), DType); //object result = dt.Compute("Sum(DataCount)",""); //if (result != System.DBNull.Value) // this.txtTotalCount.Text = "总计:0"; //else // this.txtTotalCount.Text = "总计:" + result.ToString(); storeData.DataSource = dt; storeData.DataBind(); }