private void LoadData()
        {
            exchangeRateFactorsBL = new ExchangeRateFactorsBL();
            DataSet initialData = exchangeRateFactorsBL.GetInitialData(out errorId);

            exchangeRateFactorsBL = null;

            if (initialData.Tables.Count != 0 && errorId != 2)
            {
                hdnPageNumber.Value       = "1";
                ddlCompany.DataSource     = initialData.Tables[0];
                ddlCompany.DataTextField  = "company_data";
                ddlCompany.DataValueField = "company_code";
                ddlCompany.DataBind();
                ddlCompany.Items.Insert(0, new ListItem("-"));

                if (initialData.Tables.Count > 1)
                {
                    Session["ExchangeRateFactorData"] = initialData.Tables[2];
                    BindGrid(initialData.Tables[2]);

                    ddlCompany.Items.FindByValue(initialData.Tables[1].Rows[0]["company_code"].ToString()).Selected = true;
                    txtDomesticCurrency.Text         = initialData.Tables[1].Rows[0]["currency_code"].ToString();
                    txtDomesticCurrencyGrouping.Text = initialData.Tables[1].Rows[0]["domestic_currency_group"].ToString();
                    txtCompany.Text = ddlCompany.SelectedItem.ToString();

                    ddlCompany.Visible = false;
                    txtCompany.Visible = true;
                }
                else
                {
                    txtExchangeRateFactor.Enabled     = false;
                    txtTransactionReceiptDate.Enabled = false;
                    imgBtnInsert.Enabled = false;

                    ddlCompany.Visible = true;
                    txtCompany.Visible = false;
                }
            }
            else
            {
                ExceptionHandler("Error in fetching data", string.Empty);
            }
        }