protected void Bind_CrewEvaluationResults() { int CrewID = 0; if (Request.QueryString["CrewID"] != null) { CrewID = UDFLib.ConvertToInteger(Request.QueryString["CrewID"].ToString()); } int Year = DateTime.Today.Year; DataTable dt = BLL_Crew_Evaluation.Get_CrewEvaluationResults(CrewID, Year); DataView dataView = new DataView(dt); try { if (ViewState["sortExpression"] != null) { dataView.Sort = ViewState["sortExpression"].ToString(); } } catch { } GridView_Evaluation.DataSource = dataView; GridView_Evaluation.DataBind(); Enable_Evaluation(); }
protected void Load_CrewEvaluationResults(int CrewID) { int Year = DateTime.Today.Year; DataTable dt = BLL_Crew_Evaluation.Get_CrewEvaluationResults(CrewID, Year); DataView dataView = new DataView(dt); try { if (ViewState["sortExpression"] != null) { dataView.Sort = ViewState["sortExpression"].ToString(); } } catch { } GridView_Evaluation.DataSource = dataView; GridView_Evaluation.DataBind(); Enable_Evaluation(); }