Type 1 diabetes is an autoimmune disease. Gastric banding or bypass won’t do anything for it. Those patients must get insulin.
I’ve seen experiments done with balls of beta cells in semi-permeable membranes done years ago and nothing came from it. They successfully kept the cells from autoimmune attack while allowing glucose free entry into the membrane.