private void codebehindTable() { GoogleChartsNGraphsControls.GVTable chart = new GoogleChartsNGraphsControls.GVTable(); chart.Width = WD; chart.Height = HT; DataTable dt = getData2(); dt = GoogleChartsNGraphsControls.Utils.PivotData(dt, "Employee", "Length", GoogleChartsNGraphsControls.Utils.AggregateFunction.Sum, new string[] { "Type" }); dt = GoogleChartsNGraphsControls.Utils.AddSummary(dt, "Total", GoogleChartsNGraphsControls.Utils.SUMMARYOPTIONS.BOTH); //dt.DefaultView.Sort = "Employee ASC"; chart.DataSource = dt.DefaultView.ToTable(); chart.DataBind(); this.PlaceHolderChart.Controls.Add(chart); }