/************************************************************
    Function Name: BindCompanies
    Functionality: This function is used to bind the company grid
    *********************************************************************/
    private void BindCompanies(char isSearch)
    {
        oCompanyManager = new BLL.CompanyManager();
        oCompanyInfo = new Entity.CompanyInfo();
        oCompanyInfo.StrCompanyEmail = txtEmail.Text.Trim();
        oCompanyInfo.StrCompanyName = txtCompanyName.Text.Trim();
        oCompanyInfo.ChrIsActive = 'X';
        if (!ddlStatus.SelectedValue.Equals("0"))
            oCompanyInfo.ChrIsActive = Convert.ToChar(ddlStatus.SelectedValue);

        GVCompany.DataSource = oCompanyManager.SearchCompanies(oCompanyInfo);
        GVCompany.DataBind();
        if (isSearch.Equals('Y'))
            lblResultMsg.Text = GVCompany.Rows.Count.ToString() + " Record(s) found.";

        if (GVCompany.Rows.Count > 0)
            lnkBtnDisapprove.Visible = true;
        else
            lnkBtnDisapprove.Visible = false;
    }