/// <summary> /// To assign values to CurrencyTypeTotalEstBudget dropdownlist /// </summary> private void LoadCurrencyTotalEstimate() { MasterBLL objMasterBLL = new MasterBLL(); CurrencyList objCurrencyList = new CurrencyList(); objCurrencyList = objMasterBLL.LoadCurrency(); ddlCurrencyTypeTotalEstBudget.DataTextField = "CurrencyCode"; ddlCurrencyTypeTotalEstBudget.DataValueField = "CurrencyID"; ddlCurrencyTypeTotalEstBudget.DataSource = objCurrencyList; ddlCurrencyTypeTotalEstBudget.DataBind(); ddlCurrencyTypeTotalEstBudget.SelectedIndex = 0; }
/// <summary> /// To assign values to CurrencyDropdownList /// </summary> private void LoadCurrencyEstimate() { MasterBLL objMasterBLL = new MasterBLL(); CurrencyList objCurrencyList = new CurrencyList(); objCurrencyList = objMasterBLL.LoadCurrency(); ddlCurrencyTypeEstBudget.Items.Clear(); ddlCurrencyTypeEstBudget.DataTextField = "CurrencyCode"; ddlCurrencyTypeEstBudget.DataValueField = "CurrencyID"; ddlCurrencyTypeEstBudget.DataSource = objCurrencyList; ddlCurrencyTypeEstBudget.DataBind(); //ddlCurrencyTypeEstBudget.Items.Insert(0, "--Select--"); ddlCurrencyTypeEstBudget.SelectedIndex = 0; }