private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { AccountOperation addMAccount = new ModifyAccount(e.RowIndex); addMAccount.SetDataTable(originalTable); addMAccount.ShowDialog(); FillTheDatagrid(); }
private void button2_Click(object sender, EventArgs e) { //Modify the current account; int rowIndex=dataGridView1.CurrentRow.Index; AccountOperation addMAccount=new ModifyAccount(rowIndex); addMAccount.SetDataTable(originalTable); addMAccount.ShowDialog(); FillTheDatagrid(); }
private void button2_Click(object sender, EventArgs e) { //Modify the current account; int rowIndex = dataGridView1.CurrentRow.Index; AccountOperation addMAccount = new ModifyAccount(rowIndex); addMAccount.SetDataTable(originalTable); addMAccount.ShowDialog(); FillTheDatagrid(); }