コード例 #1
0
ファイル: Card.cs プロジェクト: Geliya94/pr
 private void BTN_upd_Click(object sender, EventArgs e)
 {
     ADD_card sv = new ADD_card();
     sv.cardBindingSource.DataSource = cardDGVBindingSource;
     sv.cardBindingSource.Position = cardDGVBindingSource.Position;
     if (sv.ShowDialog() == DialogResult.OK)
     {
         cardDGVTableAdapter.Update(myDBDataSet.cardDGV);
         this.cardDGVTableAdapter.Fill(this.myDBDataSet.cardDGV);
         // dataGridView1.CurrentCell = dataGridView1.Rows[managerDGVBindingSource.Count - 1].Cells[2];
     }
 }
コード例 #2
0
        private void BTN_upd_Click(object sender, EventArgs e)
        {
            ADD_card sv = new ADD_card();

            sv.cardBindingSource.DataSource = cardDGVBindingSource;
            sv.cardBindingSource.Position   = cardDGVBindingSource.Position;
            if (sv.ShowDialog() == DialogResult.OK)
            {
                cardDGVTableAdapter.Update(myDBDataSet.cardDGV);
                this.cardDGVTableAdapter.Fill(this.myDBDataSet.cardDGV);
                // dataGridView1.CurrentCell = dataGridView1.Rows[managerDGVBindingSource.Count - 1].Cells[2];
            }
        }