Example #1
0
    public void Bind_LOTestingLabs()
    {
        int rowcount = ucCustomPagerItems.isCountRecord;

        int countrycode = 0;

        if (ddlSearchCountry.SelectedValue != "0")
        {
            countrycode = Convert.ToInt32(ddlSearchCountry.SelectedValue.ToString());
        }

        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_BunkerTestingLabList(txtfilter.Text, countrycode, GetSessionUserID(), sortbycoloumn, sortdirection, ucCustomPagerItems.CurrentPageIndex, ucCustomPagerItems.PageSize, ref rowcount);

        GridView_Labs.DataSource = dt;
        GridView_Labs.DataBind();
    }