Ejemplo n.º 1
0
        private void btnEdition_Click(object sender, EventArgs e)
        {
            AddEdManagerForm form = new AddEdManagerForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
            }
            else
            {
            }
        }
Ejemplo n.º 2
0
        private void btnEdition_Click(object sender, EventArgs e)
        {
            AddEdManagerForm form = new AddEdManagerForm();

            form.managerBindingSource.DataSource = dgvManagerBindingSource;
            form.managerBindingSource.Position   = dgvManagerBindingSource.Position;

            if (form.ShowDialog() == DialogResult.OK)
            {
                dgvManagerTableAdapter.Update(myDataBaseDataSet.dgvManager);
                int index = dgvManager.CurrentRow.Index;
                this.dgvManagerTableAdapter.Fill(this.myDataBaseDataSet.dgvManager);
                dgvManager.CurrentCell = dgvManager.Rows[index].Cells[2];
            }
        }