protected void Bind_UnAssignedCriteria() { int Evaluation_ID = UDFLib.ConvertToInteger(Request.QueryString["EID"].ToString()); DataTable dt = BLL_Crew_Evaluation.Get_UnAssigned_CriteriaList(Evaluation_ID, txtfilter.Text, UDFLib.ConvertToInteger(ddlCategory.SelectedValue)); DataView dataView = new DataView(dt); if (ViewState["sortExpression"] != null) { dataView.Sort = ViewState["sortExpression"].ToString(); } GridView_UnAssignedCriteria.DataSource = dataView; GridView_UnAssignedCriteria.DataBind(); }