private void Cargar_DropDownList_GRUPOS_PRIMARIOS_EnBlanco() { DropDownList_GRUPOS_PRIMARIOS.Items.Clear(); DropDownList_GRUPOS_PRIMARIOS.Items.Add(new ListItem("DEBE REALIZAR BUSQUEDA...", "")); DropDownList_GRUPOS_PRIMARIOS.DataBind(); }
private void cargar_DropDownList_GRUPOS_PRIMARIOS(DataRow fila) { DropDownList_GRUPOS_PRIMARIOS.Items.Clear(); ListItem item = new ListItem("Seleccione Cargo...", ""); DropDownList_GRUPOS_PRIMARIOS.Items.Add(item); DropDownList_GRUPOS_PRIMARIOS.Items.Add(new ListItem(fila["DESCRIPCION"].ToString().Trim(), fila["ID_GRUPOS_PRIMARIOS"].ToString().Trim())); DropDownList_GRUPOS_PRIMARIOS.DataBind(); }
private void cargar_DropDownList_GRUPOS_PRIMARIOS_despues_de_busquda(DataTable tablaInformacion) { DropDownList_GRUPOS_PRIMARIOS.Items.Clear(); DropDownList_GRUPOS_PRIMARIOS.Items.Add(new ListItem("Seleccione Cargo...", "")); foreach (DataRow filaInformacion in tablaInformacion.Rows) { DropDownList_GRUPOS_PRIMARIOS.Items.Add(new ListItem(filaInformacion["DESCRIPCION"].ToString().Trim(), filaInformacion["ID_GRUPOS_PRIMARIOS"].ToString().Trim())); } DropDownList_GRUPOS_PRIMARIOS.DataBind(); }