private void LlenarDepartamento() { DepartamentoDropDownList.Items.Clear(); DepartamentoDropDownList.DataSource = BLL.DepartamentoBLL.GetList(x => true); DepartamentoDropDownList.DataValueField = "DepartamentoId"; DepartamentoDropDownList.DataTextField = "Nombre"; DepartamentoDropDownList.DataBind(); }
private void LlenarComboBox() { DepartamentoDropDownList.Items.Clear(); DepartamentoDropDownList.Items.Add("Seleccione Para Buscar"); DepartamentoDropDownList.DataSource = BLL.DepartamentoBLL.GetList(x => true); DepartamentoDropDownList.DataValueField = "DepartamentoId"; DepartamentoDropDownList.DataTextField = "Nombre"; DepartamentoDropDownList.DataBind(); // DepartamentoDropDownList.Items.Add(item.Nombre); }