gregurs Posted June 12, 2012 at 09:10 PM Report Share #462359 Posted June 12, 2012 at 09:10 PM boa noite tenho dois forms um formeditar e outro inserir. no form editar tenho a datagrid onde me mostra os registos da tabela e tenho tambem um botao "editar" onde tenho este código: if (this.dataGridView1.RowCount != 0) { Apiario a = new Apiario(Convert.ToInt32(dataGridView1["ID", dataGridView1.CurrentRow.Index].Value.ToString()), dataGridView1["Nome", dataGridView1.CurrentRow.Index].Value.ToString(), dataGridView1["Area", dataGridView1.CurrentRow.Index].Value.ToString(), dataGridView1["Proprietario", dataGridView1.CurrentRow.Index].Value.ToString()); ApiarioForm ap = new ApiarioForm(); ap.ShowDialog(); e no forminserir tenho no load this.apiarioTableAdapter.Fill(this.programacaoDataSet.Apiario); o problema é que ao fazer editar ele abre o form inserir mas só me mostra o primeiro registo, se quiser editar o segundo registo não consigo Link to comment Share on other sites More sharing options...
gregurs Posted June 12, 2012 at 10:29 PM Author Report Share #462384 Posted June 12, 2012 at 10:29 PM Peço ao moderador que remova este tópico visto não ser necessário o problema em causa foi ultrapassado doutra forma. Obrigado Link to comment Share on other sites More sharing options...
bruno1234 Posted June 12, 2012 at 10:40 PM Report Share #462386 Posted June 12, 2012 at 10:40 PM Podes deixar a solução, pode ser que ajude alguém. Matraquilhos para Android. Gratuito na Play Store. https://play.google.com/store/apps/details?id=pt.bca.matraquilhos Link to comment Share on other sites More sharing options...
gregurs Posted June 13, 2012 at 06:53 PM Author Report Share #462549 Posted June 13, 2012 at 06:53 PM a solução que arranjei foi editar diretamente no datagrid com o save normal Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now