protected void Page_Load(object sender, EventArgs e) { CarryWorkCalculate crt = new CarryWorkCalculate(HttpContext.Current.User.Identity.Name); GridView1.DataSource = crt.Teaching_Direct_Main().ToList(); GridView1.DataBind(); Label1.Text = crt.SumOfTeachingDirect_Main().ToString(); GridView2.DataSource = crt.Teaching_Direct_Supervision().ToList(); GridView2.DataBind(); Label2.Text = crt.SumOfTeachingDirect_Supersion().ToString(); Label3.Text = crt.SumOfTeachingDirect().ToString(); }
private void FillGridView2() { CarryWorkCalculate cr = new CarryWorkCalculate(username); ASPxGridView2.DataSource = cr.Teaching_Direct_Supervision().ToList(); ASPxGridView2.DataBind(); }