protected void Bind_QuestionBank() { int rowcount = ucCustomPagerItems.isCountRecord; string sortbycoloumn = (ViewState["SORTBYCOLOUMN"] == null) ? null : (ViewState["SORTBYCOLOUMN"].ToString()); int? sortdirection = null; if (ViewState["SORTDIRECTION"] != null) { sortdirection = Int32.Parse(ViewState["SORTDIRECTION"].ToString()); } DataTable dt = objBLL.Get_QuestionList(txtfilter.Text != "" ? txtfilter.Text : null, UDFLib.ConvertToInteger(ddlCategory.SelectedValue), sortbycoloumn, sortdirection , ucCustomPagerItems.CurrentPageIndex, ucCustomPagerItems.PageSize, ref rowcount); DataView dataView = new DataView(dt); if (ViewState["sortExpression"] != null) { dataView.Sort = ViewState["sortExpression"].ToString(); } GridView_Criteria.DataSource = dataView; GridView_Criteria.DataBind(); ucCustomPagerItems.CountTotalRec = rowcount.ToString(); ucCustomPagerItems.BuildPager(); }
protected void Load_CriteriaList(int Category_ID) { DataTable dt = OPS_Admin.Get_CriteriaList(Category_ID); GridView_Criteria.DataSource = dt; GridView_Criteria.DataBind(); }
protected void Bind_QuestionBank() { DataTable dt = BLL_Crew_Interview.Get_CriteriaList(txtfilter.Text, UDFLib.ConvertToInteger(ddlCategoryFilter.SelectedValue)); DataView dataView = new DataView(dt); if (ViewState["sortExpression"] != null) { dataView.Sort = ViewState["sortExpression"].ToString(); } GridView_Criteria.DataSource = dataView; GridView_Criteria.DataBind(); }