private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { String cod = this.dataGridView1.CurrentRow.Cells[0].Value.ToString(); editar_filiacao wf = new editar_filiacao(cod); wf.Show(); }
private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { String cod = this.dataGridView1.CurrentRow.Cells[0].Value.ToString(); editar_filiacao wf = new editar_filiacao(cod); wf.Show(); } }