private void btnEdit_Click(object sender, EventArgs e) { frmEditGoods form = new frmEditGoods(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value.ToString()); form.ShowDialog(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { frmEditGoods form = new frmEditGoods(dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString()); form.ShowDialog(); }