Jump to content

Recommended Posts

Posted

é suposto preencher um form1 com as textboxs e ao carregar no button criar ele copia o que esta nas textboxs para a datagrid que esta no form2 e guardar na tabela receitas.

Posted

Primeiro tens que preencher a classe com os valores das textBox. Depois crias uma lista dessa classe e adicionas a instância da classe que preencheste. Depois basta alterar o DataSource da tua gridView:

lista.Add(tuaInstanciaPreenchida);
tuaGridView.DataSource = (BindingSource)lista;

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.