示例#1
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(this.magazinBDDataSet.dgvManager);
         int index = dgvManager.CurrentRow.Index;
         this.dgvManagerTableAdapter.Fill(this.magazinBDDataSet.dgvManager);
         dgvManager.CurrentCell = dgvManager.Rows[index].Cells[2];
     }
 }
示例#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(this.magazinBDDataSet.dgvManager);
                int index = dgvManager.CurrentRow.Index;
                this.dgvManagerTableAdapter.Fill(this.magazinBDDataSet.dgvManager);
                dgvManager.CurrentCell = dgvManager.Rows[index].Cells[2];
            }
        }