private void toolStripButton2_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 dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex < 0) return; //this happens when doubleclick the column head; AccountOperation addMAccount = new ModifyAccount(e.RowIndex); addMAccount.SetDataTable(originalTable); addMAccount.ShowDialog(); FillTheDatagrid(); }
private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex < 0) { return; //this happens when doubleclick the column head; } AccountOperation addMAccount = new ModifyAccount(e.RowIndex); addMAccount.SetDataTable(originalTable); addMAccount.ShowDialog(); FillTheDatagrid(); }