/// <summary> /// 将已提交的名单显示在页面上 /// </summary> private void SetSubmitted() { string evaluated = Request.QueryString["id"]; string exception = ""; DataTable table = new DataTable(); //int num = 0; if (EvaluatorManagementCtrl.GetEvaluator(ref table, evaluated, ref exception)) { Grid2.DataSource = table; Grid2.DataBind(); } }
private void BindEvaluatorToGrid() { DataTable table = new DataTable(); string exception = ""; string evaluatedID = Request.QueryString["id"]; if (EvaluatorManagementCtrl.GetEvaluator(ref table, evaluatedID, ref exception)) { table.DefaultView.Sort = "Relation ASC"; Grid1.DataSource = table.DefaultView; Grid1.DataBind(); } else { table.Clear(); Grid1.DataSource = table; Grid1.DataBind(); } }