private void FillGrid()
    {
        DataTable dtBrand = objDesg.GetDesignationMaster(Session["CompId"].ToString().ToString());

        lblTotalRecords.Text     = Resources.Attendance.Total_Records + ": " + dtBrand.Rows.Count + "";
        Session["dtDesignation"] = dtBrand;
        Session["dtFilter"]      = dtBrand;
        if (dtBrand != null && dtBrand.Rows.Count > 0)
        {
            GvDesignation.DataSource = dtBrand;
            GvDesignation.DataBind();
            AllPageCode();
        }
        else
        {
            GvDesignation.DataSource = null;
            GvDesignation.DataBind();
        }
    }
    public static string[] GetCompletionListDesg(string prefixText, int count, string contextKey)
    {
        DesignationMaster objquali = new DesignationMaster();
        DataTable         dt       = new DataView(objquali.GetDesignationMaster(HttpContext.Current.Session["CompId"].ToString()), "Designation like '" + prefixText.ToString() + "%'", "", DataViewRowState.CurrentRows).ToTable();

        string[] txt = new string[dt.Rows.Count];

        for (int i = 0; i < dt.Rows.Count; i++)
        {
            txt[i] = dt.Rows[i]["Designation"].ToString();
        }
        return(txt);
    }