public static string[] GetCompletionList(string prefixText, int count, string contextKey)
    {
        Set_Deduction obj = new Set_Deduction();
        DataTable     dt  = obj.GetDistinctDeduction(HttpContext.Current.Session["CompId"].ToString(), prefixText);

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

        if (dt.Rows.Count > 0)
        {
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                str[i] = dt.Rows[i][0].ToString();
            }
        }
        else
        {
            if (prefixText.Length > 2)
            {
                str = null;
            }
            else
            {
                dt = obj.GetDeductionTrueAll("1");
                if (dt.Rows.Count > 0)
                {
                    str = new string[dt.Rows.Count];
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        str[i] = dt.Rows[i]["Deduction"].ToString();
                    }
                }
            }
        }
        return(str);
    }
    private void FillGrid()
    {
        DataTable dtBrand = ObjAddDed.GetDeductionTrueAll(StrCompId.ToString());

        lblTotalRecords.Text   = Resources.Attendance.Total_Records + ": " + dtBrand.Rows.Count + "";
        Session["dtDeduction"] = dtBrand;
        Session["dtFilter"]    = dtBrand;
        if (dtBrand != null && dtBrand.Rows.Count > 0)
        {
            GvDeduction.DataSource = dtBrand;
            GvDeduction.DataBind();
        }
        else
        {
            GvDeduction.DataSource = null;
            GvDeduction.DataBind();
        }
        AllPageCode();
    }