public void FillStatsPivotGrid() { string fromdate = dtPick.FromDate; string todate = dtPick.ToDate; DataTable dt = new DataTable(); dt = VSWebBL.DashboardBL.SametimeHealthBL.Ins.GetSametimeSummaryStats(fromdate, todate, ""); SametimeStatsPivotGrid.DataSource = dt; SametimeStatsPivotGrid.DataBind(); }
public void ReloadGrid() { string date; string sname = ""; exactmatch = false; if (startDate.Value.ToString() == "") { date = DateTime.Now.ToString(); } else { date = startDate.Value.ToString(); } DateTime dtval = Convert.ToDateTime(date); DataTable dt = new DataTable(); dt = VSWebBL.DashboardBL.SametimeHealthBL.Ins.GetSametimeStats(sname, dtval.Month, dtval.Year, exactmatch); SametimeStatsPivotGrid.DataSource = dt; SametimeStatsPivotGrid.DataBind(); }