private void Cantoncbo_SelectedIndexChanged(object sender, EventArgs e) { id_Canton = Cantoncbo.SelectedValue.ToString(); string nombreCanton = Cantoncbo.Text; List <CANTONES> ls = R_Humanos.ConsultarCanton(nombreCanton); CANTONES c = new CANTONES(); foreach (CANTONES item in ls) { c.ID_Cantones = item.ID_Cantones; } canton_id = c.ID_Cantones; CargarCombosDistritos(); }